config/routes.rb in shakespeare-0.1.1 vs config/routes.rb in shakespeare-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
-ActionController::Routing::Routes.draw do |map|
-
- map.resources :pages
-
- map.namespace :admin do |admin|
- admin.resources :pages
- end
+ActionController::Routing::Routes.draw do |map|
+
+ map.resources :pages, :requirements => {:id => /.*/}
+
+ map.namespace :admin do |admin|
+ admin.resources :pages, :requirements => {:id => /.*/}
+ end
end
\ No newline at end of file