mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Minor docfixes in README.rdoc
This commit is contained in:
parent
415b75bb57
commit
e7e0e55815
1 changed files with 2 additions and 12 deletions
14
README.rdoc
14
README.rdoc
|
@ -301,7 +301,7 @@ Sinatra will pass you the error via the 'sinatra.error' in request.env
|
|||
Custom error mapping:
|
||||
|
||||
error MyCustomError do
|
||||
'So what happened was...' + request.env['sinatra.env'].message
|
||||
'So what happened was...' + request.env['sinatra.error'].message
|
||||
end
|
||||
|
||||
then if this happens:
|
||||
|
@ -401,7 +401,7 @@ Options are:
|
|||
-h # help
|
||||
-p # set the port (default is 4567)
|
||||
-e # set the environment (default is development)
|
||||
-x # turn on the mutext lock (default is off)
|
||||
-x # turn on the mutex lock (default is off)
|
||||
|
||||
= Contribute
|
||||
|
||||
|
@ -418,13 +418,3 @@ at the top of your sinatra.rb file
|
|||
get '/about' do
|
||||
"I'm running on Version " + Sinatra::Version.combined
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue