diff options
author | David Gay <david@davidgay.org> | 2021-05-27 19:25:20 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-27 19:25:20 -0400 |
commit | 3ebe4b17cc64bd96c05d493e04dcb4ffa9c5c36f (patch) | |
tree | 8fcf91fca3e82a69f4b3ccd04a8b80f69a633c16 | |
parent | 09dbf09b5fa6d106a57cdb601c6ed6c23e00f7dd (diff) |
Order activities by name on `locations#show`
-rw-r--r-- | app/views/locations/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb index 0001c99..ff7b2a8 100644 --- a/app/views/locations/show.html.erb +++ b/app/views/locations/show.html.erb @@ -3,7 +3,7 @@ <p class="italic"><%= @location.description %></p> </div> -<% @location.activities.each do |activity| %> +<% @location.activities.order(:name).each do |activity| %> <div class="my-4"> <h2 class="text-xl"><%= link_to activity.name, activity_path(activity) %></h2> <p class="italic"><%= activity.description %></p> |