I have the following routing set up in my app (forms belong to a site):
map.resources :sites do |site|
site.resources :forms
end
However, when I try to go to a path for edit (or such) for a form using the helpers (e.g.
edit_site_form_path(form)
or
<%= link_to 'Show', [:site, form] %>
my URLs are coming out with the ID's swapped over ( /sites/5/forms/1 ) where 5 is the form Id, and 1 is the site id. This is from the page /sites/1.
Help(?)