Skip to content

Instantly share code, notes, and snippets.

@dyoder
Created August 18, 2008 23:26
Show Gist options
  • Save dyoder/6115 to your computer and use it in GitHub Desktop.
Save dyoder/6115 to your computer and use it in GitHub Desktop.
before do
on( :get => [ 'admin', true ], :resource => :admin ) { authenticated? }
end
after do
...
end
always do
...
end
handlers do
...
end
on( :get => [ :resource, :name ], :generator => :show ) { show( attributes.name ) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment