Hi
I am working on a website where users can go to their profile by using
URL like:
http://mysite.com/profile/view?user=username
I want to have a nicer URL, like:
http://mysite.com/user/username
The above URL can be easily done by using routes / map.connect:
map.connect('/user/{username}',
On Fri, Oct 23, 2009 at 2:48 PM, d2ncal d2n...@gmail.com wrote:
However, to get the above working, I will have to change the
declaration of view() action in profile controller to accept username
as an argument. It already check for username in 'GET'. I want to keep
the old method working along
On Oct 23, 5:25 pm, Matt Feifarek matt.feifa...@gmail.com wrote:
Not sure if routes can do that for you, but what you can do is add another
action to your controller class that does NOT return a response, but merely
calls the right action:
That's a great idea. I use stuff like that often .
On Fri, Oct 23, 2009 at 2:25 PM, Matt Feifarek matt.feifa...@gmail.com wrote:
On Fri, Oct 23, 2009 at 2:48 PM, d2ncal d2n...@gmail.com wrote:
However, to get the above working, I will have to change the
declaration of view() action in profile controller to accept username
as an argument. It