method
helper_attr
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
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:
attr_accessor :name helper_attr :name
Parameters
-
attrs - Names of attributes to be converted into helpers.