From c50a8c64583710761c36ee4e6e4553c27508725a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 16 Mar 2024 11:36:57 +0100 Subject: tags: ensure the order by name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently `#find_each` disregards the order, and so previously ordering and then calling this method was actually for nothing. Thus, let's stick to just `#each`. Signed-off-by: Miquel Sabaté Solà --- app/views/tags/_taggable.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/tags/_taggable.html.erb b/app/views/tags/_taggable.html.erb index 5d848d0..0386524 100644 --- a/app/views/tags/_taggable.html.erb +++ b/app/views/tags/_taggable.html.erb @@ -3,7 +3,7 @@
<%= I18n.t('tags.title') %> — <%= link_to I18n.t('tags.new-action'), new_tag_path %>
- <% Tag.order(:name).find_each do |tag| %> + <% Tag.order(:name).each do |tag| %>