select_tag("student_status_id",options_for_select(options, @student.student_status.id)) select系は、[表示値,送信値]となっている。デフォルトは、名前のほうでなく、 送信値の方を与える。上の例では、(options,@student.student_status.name) としても何も起らない
select_tag("student_status_id",options_for_select(options, @student.student_status.id)) select系は、[表示値,送信値]となっている。デフォルトは、名前のほうでなく、 送信値の方を与える。上の例では、(options,@student.student_status.name) としても何も起らない