diff --git a/README.rdoc b/README.rdoc index 1dfe99b5..ba72e65f 100644 --- a/README.rdoc +++ b/README.rdoc @@ -827,7 +827,7 @@ Run when the environment is set to either :production or ... end -== Error handling +== Error Handling Error handlers run within the same context as routes and before filters, which means you get all the goodies it has to offer, like haml, @@ -887,7 +887,7 @@ Or a range: Sinatra installs special not_found and error handlers when running under the development environment. -== Mime types +== Mime Types When using send_file or static files you may have mime types Sinatra doesn't understand. Use +mime_type+ to register them by file extension: @@ -1004,7 +1004,7 @@ Sinatra::Base components with two modifications: including the built-in server. See {Options and Configuration}[http://sinatra.github.com/configuration.html] for details on available options and their behavior. -=== Serving a modular app +=== Serving a Modular Application There are two common options for starting a modular app, activly starting with run!: @@ -1033,7 +1033,7 @@ Run: rackup -p 4567 -=== Using a classic app with a config.ru +=== Using a Classic Style Application with a config.ru Write your app file: @@ -1184,7 +1184,7 @@ Have a look at the code for yourself: here's the {Sinatra::Delegator mixin}[http://github.com/sinatra/sinatra/blob/ceac46f0bc129a6e994a06100aa854f606fe5992/lib/sinatra/base.rb#L1128] being {included into the main namespace}[http://github.com/sinatra/sinatra/blob/ceac46f0bc129a6e994a06100aa854f606fe5992/lib/sinatra/main.rb#L28]. -== Command line +== Command Line Sinatra applications can be run directly: @@ -1225,7 +1225,7 @@ To update the Sinatra sources in the future: cd myproject/sinatra git pull -== More +== Further Reading * {Project Website}[http://www.sinatrarb.com/] - Additional documentation, news, and links to other resources.