Rails 3, only rendering partial if a user is logged in

On a Rails 3.1 app, I have a method called user_logged_in? from Devise, which I want to use to render a partial selectively. Here's the code in layouts/application.html.erb: <% if user_logged_i...