Clean up frontend, DRY up templates

This commit is contained in:
maddiebaka
2023-10-22 14:05:01 -04:00
parent c5cbffb4e5
commit 66fc396504
5 changed files with 45 additions and 37 deletions

View File

@@ -1,9 +1,10 @@
<div>
<%= @letter.to_s %>
<h1><%= @letter.to_s %></h1>
</div>
<% @words.each do |word| %>
<div>
<h1><%= word.word %></h1>
<h2><%= word.word %></h2>
<%= render "definitions", word: word %>
</div>
<% end %>