‘templates’ is a reserved word in Rails

I’m glad I didn’t spend too much time stabbing around in the dark on this one. I had a controller/model named ‘templates’, but there was a weird error that popped up:
undefined method `assign_variables_from_controller' for #
That’s because ‘templates’ is a reserved word in Rails, so you can’t use it for your controller name.

Advertisements

2 thoughts on “‘templates’ is a reserved word in Rails

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s