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
2.1m questions
2.1m answers
60 comments
57.0k users