I have two models: Books
and pages
in a typical one_to_many relationship.
How can I make the following
page_path(@page)
output this path:
bookname/page/pageid
instead of
page/pageid
If I override the to_param, all I can do is make a path like localhost/page/bookid/pageid
but that's not what I want.