Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Used for
branch auth
gem 'devise'
$ rails g devise:install
$ rails g devise admin
$ rake db:migrate
<ul class="nav secondary-nav">
<% if admin_signed_in? %>
<li><%= link_to "Sign out", destroy_admin_session_path, :method => :delete %> </li>
<% else %>
<li><%= link_to "Admin", new_admin_session_path %></li>
<% end %>
or common/_header.html.erb if body header is extracted there.
<div class="topbar">
<div class="fill">
<div class="container">
<%= render :partial => 'common/admin_menu' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment