From 02548925a9bc2f26398278050df37105e01dd070 Mon Sep 17 00:00:00 2001 From: "TAKAHASHI,Toru" Date: Tue, 1 May 2018 14:59:20 +0900 Subject: [PATCH] [phase-1]can view default index page from Web browser. --- app/controllers/glossary_terms_controller.rb | 5 +++++ app/helpers/glossary_terms_helper.rb | 2 ++ app/views/glossary_terms/index.html.erb | 1 + config/routes.rb | 4 ++++ test/functional/glossary_terms_controller_test.rb | 8 ++++++++ 5 files changed, 20 insertions(+) create mode 100644 app/controllers/glossary_terms_controller.rb create mode 100644 app/helpers/glossary_terms_helper.rb create mode 100644 app/views/glossary_terms/index.html.erb create mode 100644 test/functional/glossary_terms_controller_test.rb diff --git a/app/controllers/glossary_terms_controller.rb b/app/controllers/glossary_terms_controller.rb new file mode 100644 index 0000000..8bd0e1c --- /dev/null +++ b/app/controllers/glossary_terms_controller.rb @@ -0,0 +1,5 @@ +class GlossaryTermsController < ApplicationController + + def index + end +end diff --git a/app/helpers/glossary_terms_helper.rb b/app/helpers/glossary_terms_helper.rb new file mode 100644 index 0000000..676b7c3 --- /dev/null +++ b/app/helpers/glossary_terms_helper.rb @@ -0,0 +1,2 @@ +module GlossaryTermsHelper +end diff --git a/app/views/glossary_terms/index.html.erb b/app/views/glossary_terms/index.html.erb new file mode 100644 index 0000000..9b67204 --- /dev/null +++ b/app/views/glossary_terms/index.html.erb @@ -0,0 +1 @@ +

GlossaryTermsController#index

diff --git a/config/routes.rb b/config/routes.rb index 1803173..c08e16f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,2 +1,6 @@ # Plugin's routes # See: http://guides.rubyonrails.org/routing.html + +Rails.application.routes.draw do + resources :glossary_terms, only: [:index] +end diff --git a/test/functional/glossary_terms_controller_test.rb b/test/functional/glossary_terms_controller_test.rb new file mode 100644 index 0000000..263036e --- /dev/null +++ b/test/functional/glossary_terms_controller_test.rb @@ -0,0 +1,8 @@ +require File.expand_path('../../test_helper', __FILE__) + +class GlossaryTermsControllerTest < ActionController::TestCase + # Replace this with your real tests. + def test_truth + assert true + end +end