Class: SecretSauce::Helpers::UiFormHelper::UiFormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
lib/jquery/secret_sauce/helpers/ui_form_helper.rb

Instance Method Summary collapse

Instance Method Details

#error_messagesObject



12
13
14
# File 'lib/jquery/secret_sauce/helpers/ui_form_helper.rb', line 12

def error_messages
  @template.error_messages_for(object_name)
end

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



6
7
8
9
10
# File 'lib/jquery/secret_sauce/helpers/ui_form_helper.rb', line 6

def submit(value, options={})
  options = {:id => "#{object_name}_submit"}.merge(options)
  @template.instance_variable_set("@ui_form_submit", [value, options])
  nil
end