Displaying 4 results from an estimated 4 matches for "student_fail".
2010 Mar 09
3
undefined method join for STRING error
Hey all,
I was converting a haml file to erb and when finished, I ran the app
and got this error message:
NoMethodError in Students#student_fail
Showing app/views/students/student_fail.erb where line #40 raised:
undefined method `join'' for #<String:0x105a5e0c8>
Extracted source (around line #40):
37:
38: <% fields << render(:partial =>
"resources_partials/sequence/nav", :locals =>
sequen...
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_...
2010 Feb 20
3
update user input to another table without using html form
...other table, let''s 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_attribu...
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...