adding the people controller to access, list the people model

This commit is contained in:
Dan Buch 2011-08-09 21:06:53 -04:00
parent 9085ad1117
commit 5d78c29208
6 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class PeopleController < ApplicationController
def list
end
end

View File

@ -0,0 +1,2 @@
module PeopleHelper
end

View File

@ -0,0 +1,2 @@
<h1>People#list</h1>
<p>Find me in app/views/people/list.html.erb</p>

View File

@ -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"

View File

@ -0,0 +1,9 @@
require 'test_helper'
class PeopleControllerTest < ActionController::TestCase
test "should get list" do
get :list
assert_response :success
end
end

View File

@ -0,0 +1,4 @@
require 'test_helper'
class PeopleHelperTest < ActionView::TestCase
end