seancribbs/webmachine-ruby — Issue #13: Application object
Author: seancribbs
Created: 2011-10-23 21:10:18+00:00
State: open
Labels: feature

We need a place to put routes, configuration, and things like #11 that separates it from the Webmachine module's state.

Idea:

```ruby
class Assets < Webmachine::Application
routes do
add ['*'], AssetResource
end

configure do |config|
config.port = 9292
end

def handle_error(e, response)
response.body = "Ooops, you bwoke it."
response.code = 500
end
end
```