method
helper_attr
v2.0.3 -
Show latest stable
- Class:
ActionController::Helpers::ClassMethods
helper_attr(*attrs)public
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:
helper_attr :name attr_accessor :name