[phase-1]can view default index page from Web browser.
This commit is contained in:
parent
5785342c51
commit
02548925a9
5
app/controllers/glossary_terms_controller.rb
Normal file
5
app/controllers/glossary_terms_controller.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class GlossaryTermsController < ApplicationController
|
||||||
|
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
end
|
2
app/helpers/glossary_terms_helper.rb
Normal file
2
app/helpers/glossary_terms_helper.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
module GlossaryTermsHelper
|
||||||
|
end
|
1
app/views/glossary_terms/index.html.erb
Normal file
1
app/views/glossary_terms/index.html.erb
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h2>GlossaryTermsController#index</h2>
|
@ -1,2 +1,6 @@
|
|||||||
# Plugin's routes
|
# Plugin's routes
|
||||||
# See: http://guides.rubyonrails.org/routing.html
|
# See: http://guides.rubyonrails.org/routing.html
|
||||||
|
|
||||||
|
Rails.application.routes.draw do
|
||||||
|
resources :glossary_terms, only: [:index]
|
||||||
|
end
|
||||||
|
8
test/functional/glossary_terms_controller_test.rb
Normal file
8
test/functional/glossary_terms_controller_test.rb
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user