Displaying 1 result from an estimated 1 matches for "article_attachments".
2007 Jul 19
3
Merb::Controller#url Usage
I have a question about the usage of Merb::Controller#url. When I
have nested resources, requesting the new action works differently
than I expected. I was wondering what the intended usage is.
For example:
Say I have
r.resources :articles do |article|
article.resources :article_attachments
end
irb(main):002:0> show_routes
[:articles, "/articles"]
[:article_attachments, "/articles/:article_id/article_attachments"]
[:article_attachment, "/articles/:article_id/article_attachments/:id"]
[:edit_article_attachment, "/articles/:article_id/article_at...