search for: people_query_regexp

Displaying 1 result from an estimated 1 matches for "people_query_regexp".

2009 Jul 06
0
Routing via regexp with map.resources?
I have a requirement to support a query syntax on my resources like so: http://localhost:3000/people(last_name=jones).xml I can hook that up so that the people controller receives that action via map.connect like so: map.connect '':people_query_regexp'', :controller => ''people'', :index => ''index'', :requirements => { :people_query_regexp => /people.*/ } But people is a RESTful resource, so I want to do the same thing using map.resources instead of map....