localhost:3000/

15 views
Skip to first unread message

Ainar Abramovich

unread,
Aug 8, 2010, 11:16:18 AM8/8/10
to Ruby on Rails: Talk
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?

Marnen Laibow-Koser

unread,
Aug 9, 2010, 10:08:13 AM8/9/10
to rubyonra...@googlegroups.com

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
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.

Andre Fonseca

unread,
Aug 11, 2010, 4:23:17 PM8/11/10
to rubyonra...@googlegroups.com
There's also Devise. Devise has more feature than Authlogic. 

Search in gitub


Reply all
Reply to author
Forward
0 new messages