I have a route that looks like this:
scope '':project_name'' do
resources :submissions
end
and a form_for tag that looks like this:
= form_for admin_submission_path(@project.name, @submission), :html =>
{ :multipart => true } do |f|
but for some reason it tries to match the show route instead and
returns a no route error. There seems to be some solutions on
stackoverflow but they look pretty messy to me:
http://stackoverflow.com/questions/3741979/form-for-and-scopes-rails-3
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.