Permalink
Browse files

Add Sinatra to setup examples

  • Loading branch information...
1 parent d972e26 commit 618b90c8620f8f0245d64b7cfc39eadb88eb4227 @dcramer dcramer committed Oct 3, 2012
Showing with 18 additions and 1 deletion.
  1. +18 −1 README.md
View
19 README.md
@@ -37,7 +37,7 @@ end
No support for Rails 2 yet.
-### Other Rack Servers
+### Rack
Basic RackUp file.
@@ -51,6 +51,23 @@ end
use Raven::Rack
```
+### Sinatra
+
+```
+require 'sinatra'
+require 'raven'
+
+Raven.configure do |config|
+ config.dsn = 'http://public:secret@example.com/project-id'
+end
+
+use Raven::Rack
+
+get '/' do
+ 1 / 0
+end
+```
+
### Other Ruby
```ruby

0 comments on commit 618b90c

Please sign in to comment.