Is there a better way to show admin link than this? I want to
implement page caching but can’t due to it not having conditions.
Fragment caching seems wrong for my site since every page should be
cached except I have this toolbar div shown in the layout if the user
is logged in.
<% if logged_in? -%>
- <%= link_to "New article", new_article_path %>
- <%= link_to "New project", new_project_path %> <%= yield :admin %>
- <%= link_to "Logout", logout_path %>
<%= flash[:notice] %>
Any tips on a different way of doing the admin interface that don’t
involve duplication like /admin/…?