Class: SemanticFormFor::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Includes:
FormHelpers
Defined in:
lib/semantic_form_for/form_builder.rb

Constant Summary collapse

FIELDSETS =
[ :inputs, :buttons ]
INPUTS =
[
  :select,
  *ActionView::Helpers::FormBuilder.instance_methods.grep(%r{_area$}),
  *ActionView::Helpers::FormBuilder.instance_methods.grep(%r{_box$}),
  *ActionView::Helpers::FormBuilder.instance_methods.grep(%r{_button$}),
  *ActionView::Helpers::FormBuilder.instance_methods.grep(%r{_field$}),
  *ActionView::Helpers::FormBuilder.instance_methods.grep(%r{_select$}),
]
BUTTONS =
[ :submit ]

Instance Attribute Summary collapse

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



7
8
9
# File 'lib/semantic_form_for/form_builder.rb', line 7

def object
  @object
end

#object_nameObject (readonly)

Returns the value of attribute object_name.



8
9
10
# File 'lib/semantic_form_for/form_builder.rb', line 8

def object_name
  @object_name
end

#templateObject (readonly)

Returns the value of attribute template.



6
7
8
# File 'lib/semantic_form_for/form_builder.rb', line 6

def template
  @template
end