Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Includes:
ModelNaming
Defined in:
lib/amelia/action_view/helpers/form_helper.rb

Instance Method Summary collapse

Instance Method Details

#submit(value = nil, options = {}) ⇒ Object



16
17
18
19
20
# File 'lib/amelia/action_view/helpers/form_helper.rb', line 16

def submit(value=nil, options={})
  value, options = nil, value if value.is_a?(Hash)
  value ||= submit_default_value
  @template.submit_tag(value.internationalization, options)
end