Rails ログイン時のみの設定 if user_signed_in?

 

引用:

 

It appears that

user_logged_in?

Is not used anymore, and instead you need to use

user_signed_in?

So with the code you gave this should work:

<% if user_signed_in? %>
  <%= render :partial => "home/statusbar" %>
<% end %>

This code rendered a partial for me.

 
   

stackoverflow.com