add helper to show if a pet or mount is owned by the user
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><%= mount.name %></h5>
|
||||
<p class="card-text"><%= mount.description %></p>
|
||||
<p class="card-text">Owned: <%= mount_owned?(mount) %></p>
|
||||
<%= link_to 'Detail', mount, class: "btn btn-primary" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user