Module | ActionController::Helpers::ClassMethods |
In: |
lib/action_controller/metal/helpers.rb
|
Declares helper accessors for controller attributes. For example, the following adds new name and name= instance methods to a controller and makes them available to the view:
attr_accessor :name helper_attr :name
Overwrite modules_for_helpers to accept :all as argument, which loads all helpers in helpers_path.