Skip to content

Instantly share code, notes, and snippets.

@jhubert
Created May 4, 2009 00:19
Show Gist options
  • Save jhubert/106220 to your computer and use it in GitHub Desktop.
Save jhubert/106220 to your computer and use it in GitHub Desktop.
match('/:key(/:id)(/:action)(.:format)',
:paste_key => /^[0-9]+|[a-z0-9]{14}$/,
:id => /^[a-z0-9]{40}$/
).to(:action => 'show')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment