Q:

Rendering navigation bar only after log in/sign up

I'm using Devise to handle user authentication and would like my navigation bar to render only if a user has signed up/ logged in. I do not want it showing on my landing page. I was able to get it to not render when on the log in page:  
<%= render 'shared/navigation' unless current_page?(user_session_url) %> 

but it would  not take multiple URL's. 
Any suggestions?

A:

You can do something like that
<%= render 'shared/navigation' if current_user %>

Devise gives you current_user helper which will return user object if the user is signed up or logged in and false if not.
Or you can also use user_signed_in? method which will return boolean value as true if the user is logged in or false if not:
<%= render 'shared/navigation' if user_signed_in? %>

