Add words controller with index and show actions

This commit is contained in:
maddiebaka committed 2023-10-14 13:50:50 -04:00
1 parent ad08b283b0
commit 6202a6e778
11 files changed
+121 -1

No files matched your search

@@ -0,0 +1,12 @@
<table>
<tr>
<td><b>Part of Speech</b></td>
<td><b>Definition</b></td>
</tr>
<% word.definitions.each do |definition| %>
<tr>
<td><b><%= definition.pos %></b></td>
<td><%= definition.definition %></td>
</tr>
<% end %>
</table>