Human_D
#1
Hello folks,
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 =>
‘show_by_name’
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?
Thanks,
Human_D
#2
On 2/24/07, Human D. [email protected] wrote:
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?
Those are both custom routes, so you won’t be able to use
map.resources for them. map.connect will work fine.
–
Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com
Human_D
#3
Thanks Rick, I was not sure about it.