Ainar Abramovich wrote: > Hi, I'm struggling with logging in to my app. Can somebody tell me how > to do twitter like login? The idea is following -> when the user is > logged out, browser shows localhost:3000/ and on main page is shown > websites domain name etc.. with NO posts, and when he is logged in it > stays the same -> localhost:3000/ BUT shows all his/her whatever :) > posts, anybody?
Use Authlogic or something similar; set it up according to the instructions. Check the value of current_user to determine whether anyone is logged in, and act accordingly. Very simple. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [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.

