Commit placeholder work
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user