Forum: Ruby on Rails Keep ketting weird error, NoMethodError in Admin#create_surv

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fb613ae74d247c05eba250f575e2c9b0?d=identicon&s=25 Michiel Sikkes (Guest)
on 2006-01-11 20:50
(Received via mailing list)
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?
C64e63b70be7dfed8b0742540b8b27e5?d=identicon&s=25 Mark Reginald James (Guest)
on 2006-01-12 00:32
(Received via mailing list)
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 => false

Your 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.
This topic is locked and can not be replied to.