I'm bad in English, so i'll be short. It newbie question, I think)
In my application I has users, which :has_many => posts. In routes.rb
I can with ease create routes for posts like /:user_id/posts/..., but
I wish to have something like /posts/:user_id/... instead. And use
map.resources syntax to be one-liner, of course
And url-generation for this routes a pretty ugly in views: instead of
show_post_path I write now show_post_url(:user_id =>
post.author_id, :post_id => post.id)