I have this in my routes:
resources :users do
resources :posts
end
It creates the show path /users/:user_id/posts/:post_id
Great. But if someone types /users/:user_id/post/:post_id
(mind the singular /post and not /posts) then they get a 404. I want to do a 302 redirect from .../post/:post_id
to ../posts/:post_id
in my routes. How?