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,6 +1,8 @@
<h1>Dictionary#index</h1>
<p>Find me in app/views/dictionary/index.html.erb</p>
<%= sanitize alphabetical_links, tags: ["a"] %>
<p><%= @parts_of_speech.count %> parts of speech entries in database</p>
<h1>Parts of Speech</h1>
<table>

View File

@@ -0,0 +1,9 @@
<div>
<%= @letter.to_s %>
</div>
<% @words.each do |word| %>
<div>
<h1><%= word.word %></h1>
</div>
<% end %>