config/routes.rb in simple_admin-0.3.1 vs config/routes.rb in simple_admin-0.4.0
- old
+ new
@@ -1,5 +1,6 @@
SimpleAdmin::Engine.routes.draw do
+ root :to => "admin#index", :interface => SimpleAdmin::registered.first.try(:collection)
SimpleAdmin::registered.each do |interface|
resources interface.collection,
:controller => :admin,
:as => "simple_admin_#{interface.collection}",
:defaults => {:interface => interface.collection}