Skip to content

Commit

Permalink
Merge pull request #55 from FranklinChen/master
Browse files Browse the repository at this point in the history
Fixed a few typos etc.
  • Loading branch information
Zachary Scott committed Sep 17, 2011
2 parents acccbde + cf1b3f3 commit 389efbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions book/Getting_to_know_Sinatra.markdown
Expand Up @@ -50,7 +50,7 @@ As you can see from this contrived example, Sinatra's routing is very easy to ge
along with. Don't be fooled, though, Sinatra can do some pretty amazing things
with Routes.

Take a more indepth look at [Sinatra's routes][routes], and see for yourself.
Take a more in-depth look at [Sinatra's routes][routes], and see for yourself.

[routes]: http://www.sinatrarb.com/intro#Routes
[restful-web-services]: http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services
Expand All @@ -67,7 +67,7 @@ match to the request.
### before

The `before` method will let you pass a block to be evaluated **before** _each_
and_every_ route gets processed.
and _every_ route gets processed.

before do
MyStore.connect unless MyStore.connected?
Expand Down
7 changes: 4 additions & 3 deletions book/Views.markdown
Expand Up @@ -4,9 +4,9 @@ Views
RSS Feed
--------

The builder gem/library is required to in this recipe
The [builder][builder] gem/library for creating XML is required in this recipe.

Assume that your site url is http://liftoff.msfc.nasa.gov/.
Assume that your site url is `http://liftoff.msfc.nasa.gov/`.

get '/rss.xml' do
builder do |xml|
Expand All @@ -31,7 +31,7 @@ Assume that your site url is http://liftoff.msfc.nasa.gov/.
end
end

This will render the rss inline, directly from the handler.
This will render the RSS inline, directly from the handler.

CoffeeScript
------------
Expand Down Expand Up @@ -95,6 +95,7 @@ in your application, these are a great place to start:
[therubyracer]: http://github.com/cowboyd/therubyracer
[coffee-script-repo]: http://github.com/jashkenas/coffee-script
[coffee-script-url]: http://coffeescript.org/
[builder]: http://builder.rubyforge.org/
[rake]: http://rake.rubyforge.org/
[nodejs]: http://nodejs.org/
[ruby-coffee-script]: http://github.com/josh/ruby-coffee-script
Expand Down

0 comments on commit 389efbc

Please sign in to comment.