helper_attr(*attrs)
Instance Public methods
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:
1 2 | attr_accessor :name helper_attr :name |
Parameters
-
attrs
- Names of attributes to be converted into helpers.
Please login to continue.