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
if you need to share a method between a controller and helper/view, you can just define via 'helper_method' in the top of the controller:
class ApplicationController < ActionController::Base helper_method :my_shared_method ... def my_shared_method #do stuff end end
hope that helps