As long as some like you is there, I don't mind at all :):)
Thanks a lot. This works.
Fabien Jakimowicz wrote:
> On Fri, Jul 25, 2008 at 14:57, Sandeep Gudibanda
> <[EMAIL PROTECTED]> wrote:
>> Now I have ".com" as a part of the company name(Amazon.com), then my app
>> flags out an error stating:
>> no route found to match "/company-profile/amazon.com" with
>> {:method=>:get})
>>
>> How can i avoid this?
>>
>
> Just specify a catchall condition on the parameter :
>
> map.connect 'company/:company', :controller => 'community', :action =>
> 'search', :company => /.*/
>
> PS: this mailing list is almost french oriented ;)
>
> --
> http://fabien.jakimowicz.com
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de
Google Groups.
Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse
[email protected]
Pour résilier votre abonnement envoyez un e-mail à l'adresse [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---