# Localhost:3000/

**URL:** <https://www.ruby-forum.com/t/localhost-3000/192927>\
**Category:** Rails\
**Created:** [August 8, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/localhost-3000/192927 "2010-08-08T17:17:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ainar\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Post date:** [August 8, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/localhost-3000/192927/1 "2010-08-08T17:17:21Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Ainar\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Post date:** [August 9, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/localhost-3000/192927/2 "2010-08-09T16:08:13Z")

</div>

Ainar A. 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](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Ainar\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Post date:** [August 11, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/localhost-3000/192927/3 "2010-08-11T22:35:37Z")

</div>

There’s also Devise. Devise has more feature than Authlogic.

Search in gitub
