Site para o estudio Velvet Design em São Paulo. http://velvetdesign.com.br

_navigation_links.html.erb 816B

    <div class="container nav-collapse"> <ul class="nav"> <li><%= link_to "Blog", blog_path %></li> </ul> <ul class="nav pull-right"> <% if user_signed_in? %> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <%= current_user.full_name %> <b class="caret"></b> </a> <ul class="dropdown-menu"> <% if current_user.admin %> <li><%= link_to 'Admin Panel', admin_dashboard_path %></li> <% end %> <li><%= link_to 'Account', edit_user_registration_path %></li> <li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li> </ul> </li> <% else %> <li><%= link_to "Login", new_user_session_path %></li> <li><%= link_to "Sign Up", new_user_registration_path %></li> <% end %> </ul> </div><!--/.nav-collapse -->