complicated route

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

ok

map.connect ‘/:company_link’, :controller => “companies”, :action => “show”, :requirements => {:company_link’ => /[\w.]+/}

This worked for me :slight_smile:

Thanks Abhis