I have a Rails 3 app with a url like this: /books/1/pages/2
I want this to actually point to the Books
controller but with a pa开发者_C百科ge_id
param, rather than the Pages
controller with the book_id
param. Is this possible?
In routes.rb: match '/books/:id/pages/:page_id' => 'books#your_action'
精彩评论