11 lines
150 B
Ruby
11 lines
150 B
Ruby
|
class WordsController < ApplicationController
|
||
|
|
||
|
def index
|
||
|
@words = Word.all
|
||
|
end
|
||
|
|
||
|
def show
|
||
|
@word = Word.find_by_id(params[:id])
|
||
|
end
|
||
|
end
|