How to get a custom query string with REST

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,

  • Dunnil

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

Thanks Rick, I was not sure about it.