localhost:3000/

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 :slight_smile:
posts, anybody?

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 :slight_smile:
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,

Thereโ€™s also Devise. Devise has more feature than Authlogic.

Search in gitub