add helper to show if a pet or mount is owned by the user

This commit is contained in:
Etienne Ischer
2021-04-30 12:49:31 +02:00
parent 639bd044bf
commit ca80fd55fa
6 changed files with 11 additions and 3 deletions

View File

@@ -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>