2023-10-12 20:02:22 -04:00
|
|
|
class DictionaryController < ApplicationController
|
|
|
|
def index
|
|
|
|
@parts_of_speech = PartOfSpeech.all
|
2023-10-12 22:24:31 -04:00
|
|
|
@words = Word.all
|
2023-10-12 20:02:22 -04:00
|
|
|
end
|
2023-10-20 14:29:34 -04:00
|
|
|
|
|
|
|
def show
|
|
|
|
@letter = params[:id]
|
|
|
|
@words = Word.where('substr(word, 1, 1) = ?', @letter)
|
|
|
|
end
|
2023-10-12 20:02:22 -04:00
|
|
|
end
|