Created
April 5, 2011 06:20
-
-
Save amster/903117 to your computer and use it in GitHub Desktop.
Haml form_for with :remote => true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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