Created
November 24, 2008 22:26
-
-
Save paul/28656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
match('/templates'). | |
to(:controller => 'templates', :action => 'index'). | |
name(:templates) | |
match('/templates/:id', :id => /.+/). | |
to(:controller => 'templates', :action => 'show'). | |
name(:template) | |
# TODO Use this instead once carllerche fixes the route generation order | |
# resources :templates, :id => /.+/ do | |
# resources :questions, :keys => :name, :name => /.+/ | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment