I have a problem related to polymorphic associations.
Currently in my routes i define the following:
map.resources :articles do |articles|
map.resources :posts do |posts|
I have basically posts and articles models which relate to the
polymorphic model comment.
Routes are generated as I expect to, but the problem resides in the
comments_controller, since in this controller I'm not able to figure out
if I'm creating a comment for a post or for an article.
Is there a (possibly clean) way to solve this?