Commit placeholder work

This commit is contained in:
maddiebaka committed 2023-12-06 15:53:25 -05:00
1 parent 60f37ece67
commit 709aa882b3
8 files changed
+56 -3

No files matched your search

+7 -1
View File
@@ -1,6 +1,12 @@
class DictionaryController < ApplicationController
def index
@parts_of_speech = PartOfSpeech.all
@english = Language.where(name: "English")
@parts_of_speech = PartOfSpeech.where(language_id: @english)
@parts_of_speech.each do |pos|
pos.translations.build
end
@words = Word.all
end