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