TokiTranslate/app/helpers/dictionary_helper.rb

11 lines
232 B
Ruby
Raw Normal View History

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