Skip to content

Instantly share code, notes, and snippets.

@sauberia
Created December 5, 2011 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauberia/1434132 to your computer and use it in GitHub Desktop.
Save sauberia/1434132 to your computer and use it in GitHub Desktop.
Example named routes locales
en:
named_routes:
article: '/news/:y/:m/:d/:article_slug(/:country_slug)(/:page)'
articles: '/news(/:country_slug)(/:page)'
country_services: '/products-and-services'
country_service: '/products-and-services/:service_slug'
fr:
named_routes:
article: '/nouvelles/:y/:m/:d/:article_slug(/:country_slug)(/:page)'
articles: '/nouvelles(/:country_slug)(/:page)'
country_services: '/produits-et-services'
country_service: '/produits-et-services/:service_slug'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment