Add words controller with index and show actions
This commit is contained in:
10
app/controllers/words_controller.rb
Normal file
10
app/controllers/words_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class WordsController < ApplicationController
|
||||
|
||||
def index
|
||||
@words = Word.all
|
||||
end
|
||||
|
||||
def show
|
||||
@word = Word.find_by_id(params[:id])
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user