I know how to set the routes root of my rails app to a controller and an action.
But how to add an id?
/pages/show/1 should be the root.
/pages/show/1
How
Try:
match 'pages/show/:id' => 'pages#show', :as => :root
In Rails console. rake routes | grep root, should show something like:
rake routes | grep root
root /pages/show/:id(.:format) {:controller=>"pages", :action=>"show"}
Hope that helps.