forked from bofh/fetsite
object nil? in calendar view
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<%= calendar @calendar.calentries do |entry| %>
|
||||
<div><%= link_to entry.name.to_s, polymorphic_path(entry.object) %></div>
|
||||
<div><%= link_to entry.name.to_s, polymorphic_path(entry.try(:object)) unless entry.object.nil? %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
|
||||
Reference in New Issue
Block a user