adding the people controller to access, list the people model
This commit is contained in:
parent
9085ad1117
commit
5d78c29208
@ -0,0 +1,5 @@
|
|||||||
|
class PeopleController < ApplicationController
|
||||||
|
def list
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
2
cookbook/015/hodgepodge/app/helpers/people_helper.rb
Normal file
2
cookbook/015/hodgepodge/app/helpers/people_helper.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
module PeopleHelper
|
||||||
|
end
|
2
cookbook/015/hodgepodge/app/views/people/list.html.erb
Normal file
2
cookbook/015/hodgepodge/app/views/people/list.html.erb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<h1>People#list</h1>
|
||||||
|
<p>Find me in app/views/people/list.html.erb</p>
|
@ -1,4 +1,6 @@
|
|||||||
Hodgepodge::Application.routes.draw do
|
Hodgepodge::Application.routes.draw do
|
||||||
|
get "people/list"
|
||||||
|
|
||||||
get "foo/pretty"
|
get "foo/pretty"
|
||||||
|
|
||||||
get "foo/count"
|
get "foo/count"
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class PeopleControllerTest < ActionController::TestCase
|
||||||
|
test "should get list" do
|
||||||
|
get :list
|
||||||
|
assert_response :success
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,4 @@
|
|||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class PeopleHelperTest < ActionView::TestCase
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user