<% unless current_user.nil? %> <% unless current_user.admin_id == 3 %> <%= link_to 'Edit', edit_site_path(@site) %> | <%= link_to 'Back', sites_path %> <% end %> <% end %>