Hi, everybody

Is there a way to simplify address path from:
  http://0.0.0.0:3000/books/3/pages/1
to this format:
  http://0.0.0.0:3000/3/1

My current routes.rb looks like:

ActionController::Routing::Routes.draw do |map|
  map.resources :books do |book|
    book.resources :pages
  end
end

Many thanks for your help,

Pulu
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to