From 3ebe4b17cc64bd96c05d493e04dcb4ffa9c5c36f Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 27 May 2021 19:25:20 -0400 Subject: Order activities by name on `locations#show` --- app/views/locations/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@

<%= @location.description %>

-<% @location.activities.each do |activity| %> +<% @location.activities.order(:name).each do |activity| %>

<%= link_to activity.name, activity_path(activity) %>

<%= activity.description %>

-- cgit v1.2.3