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? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
There''s also Devise. Devise has more feature than Authlogic. Search in gitub -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.