2018-05-01 07:59:20 +02:00
|
|
|
class GlossaryTermsController < ApplicationController
|
|
|
|
|
2018-05-04 02:40:20 +02:00
|
|
|
before_action :find_term_from_id, only: [:show]
|
|
|
|
|
2018-05-01 07:59:20 +02:00
|
|
|
def index
|
2018-05-01 17:42:01 +02:00
|
|
|
@glossary_terms = GlossaryTerm.all
|
2018-05-01 07:59:20 +02:00
|
|
|
end
|
2018-05-04 02:40:20 +02:00
|
|
|
|
|
|
|
# def show
|
|
|
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
# Find the term whose id is the :id parameter
|
|
|
|
def find_term_from_id
|
|
|
|
@term = GlossaryTerm.find(params[:id])
|
|
|
|
end
|
2018-05-01 07:59:20 +02:00
|
|
|
end
|