Was just trying to figure out how to do something like this and came
up with a solution.  It redirects to the login page unless the user is
logged in.  I added this code to the index method of the front
controller and it seems to work.

    if current_user.guest?
      redirect_to :login
    end

Am still testing it though...

Brett




On Dec 14, 12:13 pm, Hobo_Fan <[email protected]> wrote:
> Hi All,
>
> I think this question has been asked before by another user. Is it
> possible to have the main login page as home page? Once user log into
> from the main logon page, it will redirect the page to the normal page
> that has tabs on it. Is it possible to do it? How do I implement this?
>
> Thanks,
> Sean

--

You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.


Reply via email to