Michiel Sikkes
2006-Jan-11 19:49 UTC
[Rails] Keep ketting weird error, NoMethodError in Admin#create_survey Keep getting ''undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>''
Hi list, I keep getting the following error: NoMethodError in Admin#create_survey undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244> contents of Admin#create_survey is: @template = Survey.find(params[''survey''][''id'']) render :layout => false I have no idea where this comes from, bug in Rails? -- Michiel Sikkes michiel.sikkes@gmail.com
Mark Reginald James
2006-Jan-11 23:31 UTC
[Rails] Re: Keep ketting weird error, NoMethodError in Admin#create_survey Keep getting ''undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>''
Michiel Sikkes wrote:> I keep getting the following error: > > NoMethodError in Admin#create_survey > > undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244> > > contents of Admin#create_survey is: > > @template = Survey.find(params[''survey''][''id'']) > render :layout => falseYour use of the variable @template is clashing with a Rails internal variable. Try using another variable name. -- We develop, watch us RoR, in numbers too big to ignore.