In the old days, If i need to get something from the url into params,
I just wrote a simple route rule:
map.connect ‘:page_name’, :controller => ‘pages’, :action =>
And for the root of app:
map.connect ‘’, :controller => ‘pages’, :action => ‘show_by_name’,
:page_name => ‘main’
Now in the RESTfull world, I don’t know how to accomplish same things,
may you give me a clue please?