I\'m getting a NoMethodError when trying to access a method defined in one of my helper modules from one of my controller classes. My Rails application uses the
NoMethodError
For Rails 3, use the view_context method in your controller:
view_context
def foo view_context.helper_method ...
Here's an example: http://www.christopherirish.com/2011/10/13/no-view_context-in-rails-3-1-changes/