ok
map.connect ''/:company_link'',
:controller => "companies",
:action => "show",
:requirements => {:company_link'' => /[\w\.]+/}
This worked for me :)
Thanks
Abhis
On Mon, Dec 21, 2009 at 10:44 AM, Abhishek shukla
<betterabhi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:
> Hello Friends,
> I have a requirement where I want to have a dynamic url for e.g
>
> http://localhost:3000/company_name
>
> map.my_company_link'' ''/:company_link'',
> :controller => "companies",
> :action => "show",
> :requirements => {:company_link'' => /[\w\.]+/}
>
> This works very fine.
>
> But the complication is that now all request is going towards *companies
> controller *and *show action*, I know basically whats the problem Not not
> able to get the proper solution.
>
> Please let me know if any one else faced the same issue.
>
> Thanks
> Abhis
>
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.