Module: WithPopup::Helpers::FormHelper

Includes:
Util
Included in:
WithPopup::Helpers
Defined in:
lib/with_popup/helpers/form_helper.rb

Instance Method Summary collapse

Instance Method Details

#button_with_popup(value = nil, options = {}, &block) ⇒ Object



9
10
11
12
# File 'lib/with_popup/helpers/form_helper.rb', line 9

def button_with_popup(value = nil, options = {}, &block)
  add_with_popup_option_to!(options)
  button(value, options, &block)
end

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



4
5
6
7
# File 'lib/with_popup/helpers/form_helper.rb', line 4

def submit_with_popup(value = nil, options = {})
  add_with_popup_option_to!(options)
  submit(value, options)
end