On Jun 1, 2012, at 4:28 PM, [email protected] wrote:

> I would like visitors to my app to see a landing page with a link to a login 
> page, and logged-in users to have a separate home page, showing information 
> about their accounts, etc.
> 
> I would like them to be two distinct pages, rather than have conditional 
> content, because they will have different layouts, backgrounds, etc.
> 
> What is the best way to do that?

Quickest way would probably be to either change what's being rendered in 
FrontController#index:

def index
  if current_user
    render :template => 'some other page', :layout => 'the layout for that'
  end
end

or to redirect logged-in users (or not-logged-in) to a different action.

--Matt Jones

-- 
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