Skip to content

Commit

Permalink
Broke my tests :(
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Jan 30, 2016
1 parent 5dd6e11 commit d463357
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/views/shared/_nav.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div class='collapse navbar-collapse' id='navbar-collapse'>
<ul class='nav navbar-nav' role='tablist'>
<% @models.each do |model| %>
<li>

<%= link_to model.short_name, send("#{model.name.underscore}s_path") %>
</li>
<% if @models %>
<% @models.each do |model| %>
<li>
<%= link_to model.short_name, send("#{model.name.underscore}s_path") %>
</li>
<% end %>
<% end %>
</ul>
<p class="navbar-text navbar-right">
Expand Down

0 comments on commit d463357

Please sign in to comment.