thanks for your replies,

I want to execute the new action as well as render the corresponding
view, without changing the url. It is a case of dynamic routing.

Following is the scenario:
Every user can have their profile on the website, whose url is
www.xyz.com/profileid
Additionally there would be an option for the user to add a domain to
point to their profile.
So for example, my profile on the website is www.xyz.com/pankaj
If I own a domain www.pankaj.com, and point it to www.xyz.com, then
www.pankaj.com  should take me to the page www.xyz.com/pankaj without
changing the url.
In the before filter function, I check if the url is not xyz.com, then
it is mapped to the corresponding user, and then I need to go to the
corresponding controller and action.

Regards,
Pankaj

--

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.


Reply via email to