search for: student_fail_attribute

Displaying 3 results from an estimated 3 matches for "student_fail_attribute".

2010 Feb 10
2
undefined method 'state'
I can''t imagine what I''m trying to do is complicated at all in Rails. Yet, I am now getting this error: undefined method `state'' for :StudentFailState:Symbol. student.rb has_one :student_fail attr_accessor :student_fail_attribute #controller def student_fail @student = @student.find params[:id] def update_student_fail @student.build_student_fail params[:student][:student_fail_attribute] if @student.save #view form_for @student do |f| f.collection_select( :student_fail_attribute, params[:StudentFailState.st...
2010 Feb 20
3
update user input to another table without using html form
...say studentfails table, from 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 th...
2010 Feb 10
7
undefined method join
Hey all, I get an undefined method `join'' for #<String NoMethodError. student.rb has_one :student_fail attr_accessor :student_fail_attribute #controller def student_fail @student = @student.find params[:id] def update_student_fail @student.build_student_fail params[:student][:student_fail_attribute] if @student.save #view form_for @student do |f| f.collection_select(:student_fail_attribute, StudentFailState.all,...