module ActionController::Helpers::ClassMethods
def helper_attr(*attrs)
==== Parameters
helper_attr :name
attr_accessor :name
controller and makes them available to the view:
following adds new +name+ and name= instance methods to a
Declares helper accessors for controller attributes. For example, the
def helper_attr(*attrs) attrs.flatten.each { |attr| helper_method(attr, "#{attr}=") } end