-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'autotest/growl' | ||
require 'autotest/fsevent' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
class PagesController < ApplicationController | ||
def home | ||
@title = "Home" | ||
end | ||
|
||
def contact | ||
@title = "Contact" | ||
end | ||
|
||
def about | ||
@title = "About" | ||
end | ||
|
||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>SampleApp</title> | ||
<%= stylesheet_link_tag :all %> | ||
<%= javascript_include_tag :defaults %> | ||
<%= csrf_meta_tag %> | ||
</head> | ||
<body> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
<head> | ||
<title>Ruby on Rails Tutorial Sample App | <%= @title %></title> | ||
<%= csrf_meta_tag %> | ||
</head> | ||
<body> | ||
<%= yield %> | ||
</body> | ||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<h1>About Us</h1> | ||
<p> | ||
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a> | ||
is a project to make a book and screencasts to teach web development | ||
with <a href="http://rubyonrails.org/">Ruby on Rails</a>. This | ||
is the sample application for the tutorial. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
<h1>Pages#contact</h1> | ||
<p>Find me in app/views/pages/contact.html.erb</p> | ||
<h1>Contact</h1> | ||
<p> | ||
Contact Ruby on Rails Tutorial about the sample app at the | ||
<a href="http://railstutorial.org/feedback">feedback page</a>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
<h1>Pages#home</h1> | ||
<p>Find me in app/views/pages/home.html.erb</p> | ||
<h1>Sample App</h1> | ||
<p> | ||
This is the home page for the | ||
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a> | ||
sample application. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,46 @@ | ||
require 'spec_helper' | ||
|
||
describe PagesController do | ||
render_views | ||
|
||
describe "GET 'home'" do | ||
it "should be successful" do | ||
get 'home' | ||
response.should be_success | ||
end | ||
|
||
it "should have the right title" do | ||
get 'home' | ||
response.should have_selector("title", | ||
:content => "Ruby on Rails Tutorial Sample App | Home") | ||
end | ||
end | ||
|
||
describe "GET 'contact'" do | ||
it "should be successful" do | ||
get 'contact' | ||
response.should be_success | ||
end | ||
|
||
it "should have the right title" do | ||
get 'contact' | ||
response.should have_selector("title", | ||
:content => | ||
"Ruby on Rails Tutorial Sample App | Contact") | ||
end | ||
end | ||
|
||
describe "GET 'about'" do | ||
it "should be successful" do | ||
get 'about' | ||
response.should be_success | ||
end | ||
|
||
it "should have the right title" do | ||
get 'about' | ||
response.should have_selector("title", | ||
:content => | ||
"Ruby on Rails Tutorial Sample App | About") | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.