# Keep ketting weird error, NoMethodError in Admin#create\_surv

**URL:** <https://www.ruby-forum.com/t/keep-ketting-weird-error-nomethoderror-in-admin-create-surv/52191>\
**Category:** Rails\
**Created:** [January 11, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/keep-ketting-weird-error-nomethoderror-in-admin-create-surv/52191 "2006-01-11T20:50:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michiel\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6bbea6/32.png) [@Michiel\_S](https://www.ruby-forum.com/u/Michiel_S)\
**Post date:** [January 11, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/keep-ketting-weird-error-nomethoderror-in-admin-create-surv/52191/1 "2006-01-11T20:50:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Michiel\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6bbea6/32.png) [@Michiel\_S](https://www.ruby-forum.com/u/Michiel_S)\
**Post date:** [January 12, 2006, 12:32am UTC](https://www.ruby-forum.com/t/keep-ketting-weird-error-nomethoderror-in-admin-create-surv/52191/2 "2006-01-12T00:32:29Z")

</div>

Michiel S. 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.
