Dictionary show action for letters, alphabetical links helper
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user