[from now] 2012/04/18 07:05:40

diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb
index 953e2d7..50e74cc 100644
--- a/app/controllers/static_pages_controller.rb
+++ b/app/controllers/static_pages_controller.rb
@@ -8,4 +8,7 @@ class StaticPagesController < ApplicationController
   def about
   end

+  def contact
+  end
+
 end
diff --git a/app/views/static_pages/about.html.erb b/app/views/static_pages/about.html.erb
index 86e8621..5b1ff25 100644
--- a/app/views/static_pages/about.html.erb
+++ b/app/views/static_pages/about.html.erb
@@ -1,5 +1,5 @@
 <% provide :title, 'About' %>
-<h1>Sample App</h1>
+<h1>About</h1>
 <p>
 	The <a href="http://railstutorial.org/">Ruby on Rails Tutorial</a>
 	is a project to make a book and screencasts to teach web development
diff --git a/app/views/static_pages/contact.html.erb b/app/views/static_pages/contact.html.erb
new file mode 100644
index 0000000..89c6972
--- /dev/null
+++ b/app/views/static_pages/contact.html.erb
@@ -0,0 +1,5 @@
+<% provide :title, 'Contact'%>
+<h1>Contact</h1>
+<b>
+	Contact me at shokwave.sf@gmail.com.
+</b>
\ No newline at end of file
diff --git a/app/views/static_pages/help.html.erb b/app/views/static_pages/help.html.erb
index 8b1d729..0fe62de 100644
--- a/app/views/static_pages/help.html.erb
+++ b/app/views/static_pages/help.html.erb
@@ -1,5 +1,5 @@
 <% provide :title, 'Help'%>
-<h1>Sample App</h1>
+<h1>Help</h1>
 <p>
 	Get help on the Ruby on Rails Tutorial at the
 	<a href="http://railstutorial.org/help">Rails Tutorial help page</a>.
diff --git a/config/routes.rb b/config/routes.rb
index fec869d..b457cb0 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -4,6 +4,8 @@ SampleApp::Application.routes.draw do
   get "static_pages/help"

   get "static_pages/about"
+
+  get "static_pages/contact"

   # The priority is based upon order of creation:
   # first created -> highest priority.
diff --git a/spec/requests/static_pages_spec.rb b/spec/requests/static_pages_spec.rb
index f65a13b..532088d 100644
--- a/spec/requests/static_pages_spec.rb
+++ b/spec/requests/static_pages_spec.rb
@@ -6,7 +6,7 @@ describe 'Static pages' do

     it 'should have the content "Sample App"' do
       visit '/static_pages/home'
-      page.should have_content('Sample App')
+      page.should have_selector('h1', :text => 'Sample App')
     end

     it 'should have the right title' do
@@ -20,7 +20,7 @@ describe 'Static pages' do

     it 'should have the content "Help"' do
       visit '/static_pages/help'
-      page.should have_content('Help')
+      page.should have_selector('h1', :text => 'Help')
     end

     it 'should have the right title' do
@@ -34,7 +34,7 @@ describe 'Static pages' do

     it 'should have the content "About"' do
       visit '/static_pages/about'
-      page.should have_content('About')
+      page.should have_selector('h1', :text => 'About')
     end

     it 'should have the correct title' do
@@ -42,8 +42,20 @@ describe 'Static pages' do
       page.should have_selector('title',
       :text => "Ruby on Rails Tutorial Sample App | About")
     end
-
   end

+  describe 'Contact page' do
+
+    it 'should have the content "Contact"' do
+      visit '/static_pages/contact'
+      page.should have_selector('h1', :text => 'Contact')
+    end
+
+    it 'should have the correct title' do
+      visit '/static_pages/contact'
+      page.should have_selector('title',
+      :text => 'Ruby on Rails Tutorial Sample App | Contact')
+    end
+  end

 end
\ No newline at end of file
[from now] 2012/04/18 07:08:31

diff --git a/spec/requests/static_pages_spec.rb b/spec/requests/static_pages_spec.rb
index 532088d..8209d48 100644
--- a/spec/requests/static_pages_spec.rb
+++ b/spec/requests/static_pages_spec.rb
@@ -2,6 +2,8 @@ require 'spec_helper'

 describe 'Static pages' do

+  let(:base_title) { "Ruby on Rails Tutorial Sample App" }
+
   describe 'Home page' do

     it 'should have the content "Sample App"' do
@@ -12,7 +14,7 @@ describe 'Static pages' do
     it 'should have the right title' do
       visit '/static_pages/home'
       page.should have_selector('title',
-      :text => "Ruby on Rails Tutorial Sample App | Home")
+      :text => "#{base_title} | Home")
     end
   end

@@ -26,7 +28,7 @@ describe 'Static pages' do
     it 'should have the right title' do
       visit '/static_pages/help'
       page.should have_selector('title',
-      :text => "Ruby on Rails Tutorial Sample App | Help")
+      :text => "#{base_title} | Help")
     end
   end

@@ -40,7 +42,7 @@ describe 'Static pages' do
     it 'should have the correct title' do
       visit '/static_pages/about'
       page.should have_selector('title',
-      :text => "Ruby on Rails Tutorial Sample App | About")
+      :text => "#{base_title} | About")
     end
   end
[from now] 2012/04/18 07:10:35

diff --git a/bin/autospec b/bin/autospec
new file mode 100755
index 0000000..64dcb9c
--- /dev/null
+++ b/bin/autospec
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'autospec' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rspec-core', 'autospec')
diff --git a/bin/erubis b/bin/erubis
new file mode 100755
index 0000000..2c7348b
--- /dev/null
+++ b/bin/erubis
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'erubis' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('erubis', 'erubis')
diff --git a/bin/htmldiff b/bin/htmldiff
new file mode 100755
index 0000000..c70e238
--- /dev/null
+++ b/bin/htmldiff
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'htmldiff' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('diff-lcs', 'htmldiff')
diff --git a/bin/ldiff b/bin/ldiff
new file mode 100755
index 0000000..8e3524a
--- /dev/null
+++ b/bin/ldiff
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'ldiff' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('diff-lcs', 'ldiff')
diff --git a/bin/nokogiri b/bin/nokogiri
new file mode 100755
index 0000000..d55f84b
--- /dev/null
+++ b/bin/nokogiri
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'nokogiri' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('nokogiri', 'nokogiri')
diff --git a/bin/rackup b/bin/rackup
new file mode 100755
index 0000000..8cc9953
--- /dev/null
+++ b/bin/rackup
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rackup' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rack', 'rackup')
diff --git a/bin/rails b/bin/rails
new file mode 100755
index 0000000..657440d
--- /dev/null
+++ b/bin/rails
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rails' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('railties', 'rails')
diff --git a/bin/rake b/bin/rake
new file mode 100755
index 0000000..26c7a2d
--- /dev/null
+++ b/bin/rake
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rake' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rake', 'rake')
diff --git a/bin/rake2thor b/bin/rake2thor
new file mode 100755
index 0000000..b0b6ec9
--- /dev/null
+++ b/bin/rake2thor
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rake2thor' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('thor', 'rake2thor')
diff --git a/bin/rdoc b/bin/rdoc
new file mode 100755
index 0000000..f57260f
--- /dev/null
+++ b/bin/rdoc
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rdoc' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rdoc', 'rdoc')
diff --git a/bin/ri b/bin/ri
new file mode 100755
index 0000000..90f2517
--- /dev/null
+++ b/bin/ri
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'ri' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rdoc', 'ri')
diff --git a/bin/rspec b/bin/rspec
new file mode 100755
index 0000000..0c86b5c
--- /dev/null
+++ b/bin/rspec
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rspec' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rspec-core', 'rspec')
diff --git a/bin/sass b/bin/sass
new file mode 100755
index 0000000..d65bb10
--- /dev/null
+++ b/bin/sass
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'sass' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('sass', 'sass')
diff --git a/bin/sass-convert b/bin/sass-convert
new file mode 100755
index 0000000..ddde743
--- /dev/null
+++ b/bin/sass-convert
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'sass-convert' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('sass', 'sass-convert')
diff --git a/bin/scss b/bin/scss
new file mode 100755
index 0000000..9f5e435
--- /dev/null
+++ b/bin/scss
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'scss' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('sass', 'scss')
diff --git a/bin/thor b/bin/thor
new file mode 100755
index 0000000..8421e00
--- /dev/null
+++ b/bin/thor
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'thor' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('thor', 'thor')
diff --git a/bin/tilt b/bin/tilt
new file mode 100755
index 0000000..09fe73e
--- /dev/null
+++ b/bin/tilt
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'tilt' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('tilt', 'tilt')
diff --git a/bin/tt b/bin/tt
new file mode 100755
index 0000000..6e3920b
--- /dev/null
+++ b/bin/tt
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'tt' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('treetop', 'tt')
Hey, it's morning
gitignore
[from now] 2012/04/18 09:36:55

diff --git a/example_user.rb b/example_user.rb
new file mode 100644
index 0000000..75f12e3
--- /dev/null
+++ b/example_user.rb
@@ -0,0 +1,12 @@
+class User
+  attr_accessor :name, :email
+
+  def initialize attributes={}
+    @name = attributes[:name]
+    @email = attributes[:email]
+  end
+
+  def formatted_email
+    "#{@name} <#{@email}>"
+  end
+end
\ No newline at end of file