search for: update_failing_stud

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

2010 Feb 20
3
update user input to another table without using html form
...le) 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 you don''t have to put anything in the html. Any suggesti...