Hello, I''m trying to create a project_attachment_path
In my routes I have:
resources :projects do
collection do
get "attachments/:id/:style.:format" =>
"attachments#download", :as => :attachment
end
end
**Problem is in RAKE ROUTES:**
attachment_projects GET /projects/
attachments/:id/:style.:format
{:action=>"download", :controller=>"attachments"}
It''s backwards? Any ideas what I did wrong?
Thanks
--
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.