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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to