i've started using rails 3 beta3 and I have see that the @template variable inside controllers is nil. How I can call helpers methods inside a controller? Thx
Use the view_context method instead of @template.
view_context
@template
This is because in Rails 3 the new AbstractController was introduced.
AbstractController
You can read more here:
http://apidock.com/rails/AbstractController/Rendering/view_context
1.4m articles
1.4m replys
5 comments
57.0k users