Created
September 11, 2014 22:00
-
-
Save bill-evanson/aac7e49550c11b2a8028 to your computer and use it in GitHub Desktop.
referencing name space in rails form_for
This file contains hidden or 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 [:office, image], :action => 'update', :method => "PUT" do |f| %> | |
| <input type='hidden' name='id' value='<%= image.id %>'> | |
| <input type='hidden' name='listing_id' value='<%= listing.id %>'> | |
| <%= f.submit "Set Default", :class => 'btn btn-link' %> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment