diff --git a/app/controllers/dictionary_controller.rb b/app/controllers/dictionary_controller.rb new file mode 100644 index 0000000..1c164c5 --- /dev/null +++ b/app/controllers/dictionary_controller.rb @@ -0,0 +1,5 @@ +class DictionaryController < ApplicationController + def index + @parts_of_speech = PartOfSpeech.all + end +end diff --git a/app/helpers/dictionary_helper.rb b/app/helpers/dictionary_helper.rb new file mode 100644 index 0000000..e147a98 --- /dev/null +++ b/app/helpers/dictionary_helper.rb @@ -0,0 +1,2 @@ +module DictionaryHelper +end diff --git a/app/models/part_of_speech.rb b/app/models/part_of_speech.rb new file mode 100644 index 0000000..a06a03d --- /dev/null +++ b/app/models/part_of_speech.rb @@ -0,0 +1,2 @@ +class PartOfSpeech < ApplicationRecord +end diff --git a/app/views/dictionary/index.html.erb b/app/views/dictionary/index.html.erb new file mode 100644 index 0000000..0b6bae0 --- /dev/null +++ b/app/views/dictionary/index.html.erb @@ -0,0 +1,17 @@ +
Find me in app/views/dictionary/index.html.erb
+ +<%= @parts_of_speech.count %> parts of speech entries in database
+Part of Speech | +Definition | +
<%= item.pos %> | +<%= item.definition %> | +