Skip to content

Instantly share code, notes, and snippets.

@amster
Created April 5, 2011 06:20
Show Gist options
  • Save amster/903117 to your computer and use it in GitHub Desktop.
Save amster/903117 to your computer and use it in GitHub Desktop.
Haml form_for with :remote => true
= form_for @my_model, :remote => true do |f|
= f.label :name
= f.text_field :name
= f.label :address, 'Address'
= f.text_area :address
%input.submit-button{:type => 'button', :value => 'Add Entry'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment