リビジョン 02548925
| app/controllers/glossary_terms_controller.rb | ||
|---|---|---|
|
class GlossaryTermsController < ApplicationController
|
||
|
|
||
|
def index
|
||
|
end
|
||
|
end
|
||
| app/helpers/glossary_terms_helper.rb | ||
|---|---|---|
|
module GlossaryTermsHelper
|
||
|
end
|
||
| app/views/glossary_terms/index.html.erb | ||
|---|---|---|
|
<h2>GlossaryTermsController#index</h2>
|
||
| config/routes.rb | ||
|---|---|---|
|
# Plugin's routes
|
||
|
# See: http://guides.rubyonrails.org/routing.html
|
||
|
|
||
|
Rails.application.routes.draw do
|
||
|
resources :glossary_terms, only: [:index]
|
||
|
end
|
||
| test/functional/glossary_terms_controller_test.rb | ||
|---|---|---|
|
require File.expand_path('../../test_helper', __FILE__)
|
||
|
|
||
|
class GlossaryTermsControllerTest < ActionController::TestCase
|
||
|
# Replace this with your real tests.
|
||
|
def test_truth
|
||
|
assert true
|
||
|
end
|
||
|
end
|
||
[phase-1]can view default index page from Web browser.