config/kitsune_routes.rb in kitsune-0.0.5 vs config/kitsune_routes.rb in kitsune-0.0.6
- old
+ new
@@ -1,11 +1,12 @@
ActionController::Routing::Routes.draw do |map|
map.connect '/admin/kitsune', :controller => 'admin/kitsune/models'
map.namespace :admin do |admin|
admin.namespace :kitsune do |kitsune|
kitsune.resources :pages
- kitsune.resources :models, :has_many => [:records]
+ kitsune.resources :models do |model|
+ model.resources :records
+ end
end
end
-
map.connect '/*url', :controller => 'kitsune', :action => 'show'
-end
\ No newline at end of file
+end