Hi, I''m new to Rails. I''d like to have a customized login page for each user. Just like Twitter how you go to www.twitter.com/username and you can login from there. How do I do that? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
alamodey wrote:> Hi, > > I''m new to Rails. I''d like to have a customized login page for each > user. Just like Twitter how you go to www.twitter.com/username and you > can login from there. How do I do that? Thanks.I''m not sure exactly how Twitter implemented their login page, but my guess is that they are just styling the layout with CSS rules associated to the user account. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Jan 22, 2009 at 3:57 PM, Robert Walker < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > alamodey wrote: > > Hi, > > > > I''m new to Rails. I''d like to have a customized login page for each > > user. Just like Twitter how you go to www.twitter.com/username and you > > can login from there. How do I do that? Thanks. > > I''m not sure exactly how Twitter implemented their login page, but my > guess is that they are just styling the layout with CSS rules associated > to the user account. > -- > Posted via http://www.ruby-forum.com/. > > > >If you want to have the username on the url like they have, you can use map.connect '':username'', :controller => <controller_name>, :action => <action_name> and you will access the username via params[:username] You will need to have that as one of the last entries in your routes file and you''ll have to be careful of usernames conflicting with your other controller paths -- Andrew Timberlake http://ramblingsonrails.com http://www.linkedin.com/in/andrewtimberlake "I have never let my schooling interfere with my education" - Mark Twain --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---