Re: Query sensible URL from form

François Beausoleil
Wed, 31 Aug 2005 03:08:29 -0000

Hi !

Florian Ebeling said the following on 2005-08-29 15:13:
> Consider a small form:
>
> User: [________]  [Submit]
>
> Then you want to go to a sensible ("pretty") URL like
>
> /messages/user/febeling
>
> Is there a rails approach to this? Or is it dumb to aspire?
> The GET would obviously be cluttered with lots of ?, = and &,
> while a POST is completely silent.

Implement your controller to redirect to the proper URL, and then read
all about routes in http://manuals.rubyonrails.com/read/book/9

Bye !
François