logged_in?

<% if logged_in? %>
<h1>I'm logged in</h1>
<% end %>

This is in a view...