module ActionController::Helpers::ClassMethods

def helper_attr(*attrs)

* attrs - Names of attributes to be converted into helpers.
==== 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