Module: CatRouter::Routes
- Defined in:
- lib/cat_router/routes.rb
Class Method Summary collapse
Class Method Details
.draw(to) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/cat_router/routes.rb', line 4 def self.draw(to) Rails.application.routes.draw do match "/:locale(/*slug(.:extension))", :as => :cat_router, :to => to, :constraints => { :locale => /[a-z]{2,2}/ } root :to => to end end |