Dictionary show action for letters, alphabetical links helper

This commit is contained in:
maddiebaka
2023-10-20 14:29:34 -04:00
parent 6202a6e778
commit c5cbffb4e5
9 changed files with 93 additions and 1 deletions

View File

@@ -1,2 +1,10 @@
module DictionaryHelper
LETTERS = ['i', 'u', 'e', 'o', 'a', 'm', 'n', 'p', 't', 'k', 's', 'w', 'l', 'j'].sort
def alphabetical_links
LETTERS.map do |l|
link_to l.to_s, dictionary_path(l)
end.join("\n")
end
end