Skip to content

Instantly share code, notes, and snippets.

@cranberyxl
Created May 17, 2010 17:43
Show Gist options
  • Save cranberyxl/404004 to your computer and use it in GitHub Desktop.
Save cranberyxl/404004 to your computer and use it in GitHub Desktop.
#defaults hack
defaultWithoutSlash:
pattern: /checkout
defaults: { _bundle: CheckoutBundle, _controller: Checkout, _action: default }
defaultWithSlash:
pattern: /checkout/
defaults: { _bundle: CheckoutBundle, _controller: Checkout, _action: default }
default:
pattern: /checkout/:junk
defaults: { _bundle: CheckoutBundle, _controller: Checkout, _action: default}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment