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.
Sit for the web, code, startups, and all that jazz
undefined method `assign_variables_from_controller' for #
moreover, you can not use @template variable in your controller
ReplyDeleteThanks. Here are other reserved words:
ReplyDeletehttp://wiki.rubyonrails.org/rails/pages/ReservedWords
I was getting this error due to the same problem:
ReplyDeleteActionView::Template::Error:
can't convert ActionView::Resolver::Path into Integer