And how does twitter is doing that?
There is no Redirect to something, when i visit the Root URL As
a visitor and with à Session the Main Page is my tweetlist.





On 11 Feb., 19:24, Rick DeNatale <rick.denat...@gmail.com> wrote:
> On Thu, Feb 11, 2010 at 11:56 AM, Greg Donald <gdon...@gmail.com> wrote:
> > On Thu, Feb 11, 2010 at 7:23 AM, LeonS <leonard.stellbr...@gmail.com> wrote:
> >> I'm developing a site with a Login on the frontpage, so when you
> >> logged in you will see
> >> another "thing" than if you are not logged in.
>
> > Something like:
>
> > <%= render partial =>session[:user_id] ? 'logged_in' : 'something_else' %>
>
> The normal way to do this is to handle it at the controller level in a
> before filter set in the ApplicationController, used to check that the
> user is logged in, via thesession, and/or a token, and or via basic
> http authentication depending on the requirements of the application,
> and redirects to the login url if not.
>
> --
> Rick DeNatale
>
> Blog:http://talklikeaduck.denhaven2.com/
> Twitter:http://twitter.com/RickDeNatale
> WWR:http://www.workingwithrails.com/person/9021-rick-denatale
> LinkedIn:http://www.linkedin.com/in/rickdenatale

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to