match 'acme/requestReady' => 'remote_containers#requestready', :defaults =>
{:id => 10}
?
On May 22, 2011, at 11:32 , Erwin wrote:
> with a standard GET request defined as :
>
> GET /remote_containers/:id/requestReady(.:format)
> ( :action=>"requestReady", :controller=>"remote_containers" )
>
> I can process such request :
>
> GET /remote_containers/1/requestReady?requestId=999999
>
> but is it possible to write a match and constraint ?
>
> in order to accept :
>
> GET /acme/requestReady?requestId=999999 => /remote_containers/10/
> requestReady?requestId=999999
>
> i.e.
> /acme being rewritten as /remote_containers/10 ( the sender
> doesn't know the :id )
>
> thanks for your feedback
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
--
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
===============================================================================
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.