Permalink
Browse files

add a default route for /admin

  • Loading branch information...
1 parent 4ee7fdd commit b693ace89ee2a486eb76807d7fe22eb869fdf6d3 @zapnap zapnap committed Aug 10, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 config/routes.rb
View
1 config/routes.rb
@@ -1,4 +1,5 @@
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,

0 comments on commit b693ace

Please sign in to comment.