11 lines
232 B
Ruby
11 lines
232 B
Ruby
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
|