TokiTranslate/app/controllers/words_controller.rb

11 lines
150 B
Ruby
Raw Permalink Normal View History

class WordsController < ApplicationController
def index
@words = Word.all
end
def show
@word = Word.find_by_id(params[:id])
end
end