Module: PrototypeReplacementHelper

Defined in:
app/helpers/prototype_replacement_helper.rb

Instance Method Summary collapse

Instance Method Details

#remote_button(label, url, data, html_options = {}) ⇒ Object



3
4
5
6
7
# File 'app/helpers/prototype_replacement_helper.rb', line 3

def remote_button(label, url, data, html_options = {})
  form_tag url, remote: true, data: data, class: 'remote-form' do
    submit_tag(label, html_options)
  end
end