search for: student_program_id

Displaying 2 results from an estimated 2 matches for "student_program_id".

2006 Feb 02
4
Doubts on validation
...dent: </b></td> <td><%= text_field "student", "fname", "size" => 40, "maxlength" => 40 %></td> </tr> <tr> <td><b>Program: </b></td> <td><select id="student_program_id" name="student[program_id]"> <%= options_from_collection_for_select @programs, "id", "prg_name", @student.program_id %> </select> </td> </tr> Model ******* class Student < ActiveRecord::Base belongs_to...
2006 Feb 02
0
Validation fails with select option list
...dent_mname" name="student[mname]" size="20" value="" type="text"> <input id="student_lname" name="student[lname]" size="20" value="" type="text"> Program:</dt><dd><select id="student_program_id" name="student[program_id]"> <%= options_from_collection_for_select @programs, "id", "prg_name", @student.program_id %> </select> I am not able to use validates_presence_of in the model whenever I am including this options_from_collection_for_sel...