Skip to content

Instantly share code, notes, and snippets.

@bill-evanson
Created September 11, 2014 22:00
Show Gist options
  • Select an option

  • Save bill-evanson/aac7e49550c11b2a8028 to your computer and use it in GitHub Desktop.

Select an option

Save bill-evanson/aac7e49550c11b2a8028 to your computer and use it in GitHub Desktop.
referencing name space in rails form_for
<%= 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