For testing purposes, I want to make a particular part of a layout only visible to ONE particular user, using Devise for authentication. Here is what I want in psuedo ERB:
<% unless PARTICULARUSER.present? %>
<%= render "PARTIAL FOR EVERYONE" %>
<% else %>
<%= render :partial => "PARTIAL FOR THE SPECIAL USER" rescue render :partial =>
'PARTIAL FOR EVERYONE' %>
Is there a proper way to do this?