プロジェクト

全般

プロフィール

ダウンロード (390 Bytes) 統計
| ブランチ: | タグ: | リビジョン:
class GlossaryTermsController < ApplicationController

before_action :find_term_from_id, only: [:show]
def index
@glossary_terms = GlossaryTerm.all
end

def new
@term = GlossaryTerm.new
end

# Find the term whose id is the :id parameter
def find_term_from_id
@term = GlossaryTerm.find(params[:id])
rescue ActiveRecord::RecordNotFound
render_404
end
end
    (1-1/1)