Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes missing pl name
  • Loading branch information
CV-Gate committed Aug 11, 2016
1 parent 5f25a8f commit 00b136f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/map/_projects.html.erb
Expand Up @@ -34,7 +34,7 @@
<!-- Project cards -->
<% @projects.each do |p| %>
<div class="card -mobile-large-1-2 -tablet-1-3">
<h4 class="c-card-title -border-2"><%= p.project_leads.first.name %></h4>
<h4 class="c-card-title -border-2"><%= p.project_leads.first.try(:name) %></h4>
<%= link_to project_path(p.id), { :class => "link" } do %>
<h3 class="c-title"><%= p.title %></h3>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Expand Up @@ -48,5 +48,5 @@
end
end

root to: 'home#index'
root to: 'map#index'
end

0 comments on commit 00b136f

Please sign in to comment.