Skip to content

Instantly share code, notes, and snippets.

@lukesutton
Created April 27, 2010 00:59
Show Gist options
  • Save lukesutton/380170 to your computer and use it in GitHub Desktop.
Save lukesutton/380170 to your computer and use it in GitHub Desktop.
class App::Users
include Oooh::Controller
GET :index, '/' do
render 'index'
end
GET :show, '/:id', do |id|
user = DB::User.find(id)
render 'show', :user => user
end
GET :new, '/new' do
# ...
end
POST :create, '/' do |user|
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment