On Fri, Dec 23, 2011 at 13:47, wei jack <[email protected]> wrote:
> what i want to do is like u go to facebook. > Before u login > www.facebook.com, u see the welcome page. > After u login > www.facebook.com, u see the page where all friends sharing stuffs. But they're using the same URL both times. It's not a redirect, or changing the root path, but different content. You can do pretty much anything you want based on whether the user is logged in. It seems rather hackish, but you could have your controller send an entirely different set of vars and have the view use an entirely different section. You could at least keep it somewhat clean by separating the two views into partials or some such.... -Dave -- Dave Aronson, President, Dave Aronson Software Engineering and Training Ruby on Rails Freelancing (Northern Virginia, Washington DC, or Remote) DaveAronson.com, Codosaur.us, Dare2XL.com, & RecruitingRants.com (NEW!) Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (me) -- 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.

