Permalink
Browse files

second commit

  • Loading branch information...
vigneshinfoavc committed Oct 16, 2012
1 parent f2da53e commit 2df3e84481e25132fa7744bc0021e22247850235
@@ -0,0 +1,11 @@
+class PagesController < ApplicationController
+ def home
+ end
+
+ def contact
+ end
+
+ def about
+ end
+
+end
@@ -0,0 +1,2 @@
+module PagesHelper
+end
@@ -0,0 +1,2 @@
+<h1>Pages#about</h1>
+<p>Find me in app/views/pages/about.html.erb</p>
@@ -0,0 +1,2 @@
+<h1>Pages#contact</h1>
+<p>Find me in app/views/pages/contact.html.erb</p>
@@ -0,0 +1,2 @@
+<h1>Pages#home</h1>
+<p>Find me in app/views/pages/home.html.erb</p>
View
@@ -1,22 +1,26 @@
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
- adapter: sqlite3
- database: db/development.sqlite3
- pool: 5
- timeout: 5000
+ adapter: postgresql
+ database: sampleapps
+ username: postgres
+ password: postgres
+ host: localhost
+ port: 5432
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
- adapter: sqlite3
- database: db/test.sqlite3
- pool: 5
- timeout: 5000
+ adapter: postgresql
+ database: sampleappstest
+ username: postgres
+ password: postgres
+ host: localhost
+ port: 5432
production:
- adapter: sqlite3
- database: db/production.sqlite3
- pool: 5
- timeout: 5000
+ #adapter: sqlite3
+ #database: db/production.sqlite3
+ #pool: 5
+ #timeout: 5000
View
@@ -1,4 +1,10 @@
SampApp::Application.routes.draw do
+ get "pages/home"
+
+ get "pages/contact"
+
+ get "pages/about"
+
# The priority is based upon order of creation:
# first created -> highest priority.
@@ -0,0 +1,26 @@
+require 'spec_helper'
+
+describe PagesController do
+
+ describe "GET 'home'" do
+ it "should be successful" do
+ get 'home'
+ response.should be_success
+ end
+ end
+
+ describe "GET 'contact'" do
+ it "should be successful" do
+ get 'contact'
+ response.should be_success
+ end
+ end
+
+ describe "GET 'about'" do
+ it "should be successful" do
+ get 'about'
+ response.should be_success
+ end
+ end
+
+end
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+# Specs in this file have access to a helper object that includes
+# the PagesHelper. For example:
+#
+# describe PagesHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# helper.concat_strings("this","that").should == "this that"
+# end
+# end
+# end
+describe PagesHelper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "pages/about.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "pages/contact.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "pages/home.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end

0 comments on commit 2df3e84

Please sign in to comment.