Clean up frontend, DRY up templates
This commit is contained in:
14
app/views/application/_partsofspeech.html.erb
Normal file
14
app/views/application/_partsofspeech.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<h1>Parts of Speech</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td><b>Part of Speech</b></td>
|
||||
<td><b>Definition</b></td>
|
||||
</tr>
|
||||
<% parts_of_speech.each do |item| %>
|
||||
<tr>
|
||||
<td><b><%= item.pos %></b></td>
|
||||
<td><%= item.definition %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user