Routes question


#1

Hi *,
I have something like

map.connect ‘people/:username’, :controller => ‘account’, :action =>
‘index’

in my routes.rb and obviously if the user isn’t logged it defaults to
the login screen.
I’d like to be able to fetch the :username and display it in the
opposite input field inside my login page, but I don’t know how to do
it. For example ‘http://foo.com/people/ngw’ should insert ‘ngw’ as
username inside the login form.
Suggestions ?

ngw

Nicholas W.
removed_email_address@domain.invalid

Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com


#2

Nicholas W. wrote:

Hi *,
I have something like

map.connect ‘people/:username’, :controller => ‘account’, :action =>
‘index’

How are you fetching the value? It should be available with
params[:username]