search for: find_failing_student

Displaying 1 result from an estimated 1 matches for "find_failing_student".

2010 Feb 20
3
update user input to another table without using html form
...let''s say a students controller (which has a students table) based on user input (the user input needs to be inserted in the studentfails table). I was hoping something like this, but this doesn''t work: student.rb has_one :student_fail attr_accessor :student_fail_attribute def find_failing_student @student = @student.find params[:id] end def update_failing_student @student = @student.find params[:id] @student.build_student_fail params[:student][:student_fail_attribute] end Even for this you have to put student_fail_attribute in the html. I''m hoping there''s a way where...