form_form and custom parameter in path_prefix
- by fguillen
Hi people,
I have this route:
# config/routes.rb
map.namespace :backshop, :path_prefix => '/:shop_id/admin' do |backshop|
backshop.resources :items
end
And I want to use the form_for magic to reuse the same form on both: new and edit views:
<% form_for [:backshop, @item] do |f| %>
This used to works, and used to build a create…