Module: InheritedRailsViews

Extended by:
ActiveSupport::Concern
Defined in:
lib/inherited_rails_views.rb,
lib/inherited_rails_views/version.rb

Overview

sets the attributes to be displayed by inherited_rails_views

inherited_attributes :method1, :method2, :method3

It is also possible to set the form_helper method to be used, and the title of the label

inherited_attributes :method1 => {:value => true, :type => :text_field},
  :method2 => {:value => "Password", :type => :password_field}

They array and hash can also be combined

inherited_attributes :method1, :method2, :method3 => => “Password”, :type => :password_field

Defined Under Namespace

Modules: InstanceMethods

Constant Summary collapse

VERSION =
"1.2.2"