How to put a partial form in form_for
This was giving me problems. This solved it.
<% form_for :product, @product, :url => { :action => ‘update’, :id => @product.id } do |f| %>
<%= render :partial => ‘form’, :locals => { :f => f } %>
codes a lot
If the code is inexplicably missing from some of my posts it is because gist.github.com is down at the moment. Check back a little later.
This was giving me problems. This solved it.
<% form_for :product, @product, :url => { :action => ‘update’, :id => @product.id } do |f| %>
<%= render :partial => ‘form’, :locals => { :f => f } %>