2013-01-15 32 views
1

我使用deviseactive_admin,每當我訪問本地主機:3000/admin和選擇UsersAdmin Users選項卡,軌崩潰,很長的痕跡:軌道/設計/ ActiveAdmin:問題訪問active_admin標籤

... ... ... 
b77ae000-b77af000 r-xp 00000000 00:00 0   [vdso] 
b77af000-b77ca000 r-xp 00000000 08:01 374939  /lib/ld-2.11.3.so 
b77ca000-b77cb000 r--p 0001b000 08:01 374939  /lib/ld-2.11.3.so 
b77cb000-b77cc000 rw-p 0001c000 08:01 374939  /lib/ld-2.11.3.so 
bfd8b000-bfda0000 rw-p 00000000 00:00 0   [stack] 
[NOTE] 
You may have encountered a bug in the Ruby interpreter or extension libraries. 
Bug reports are welcome. 
For details: http://www.ruby-lang.org/bugreport.html 
Aborted 

以下是routes.rbapp/admin/users.rb的內容。

# config/routes.rb 
... ... ... 
ActiveAdmin.routes(self) 
devise_for :admin_users, ActiveAdmin::Devise.config 
devise_for :users 
... 

# app/admin/users.rb 
ActiveAdmin.register User do 
end 

# app/models/user.rb 
class User < ActiveRecord::Base 
    # Include default devise modules. Others available are: 
    # :token_authenticatable, :confirmable, 
    # :lockable, :timeoutable and :omniauthable 
    devise :database_authenticatable, :registerable, :lockable, :timeoutable, 
     :recoverable, :rememberable, :trackable, :validatable 

    # Setup accessible (or protected) attributes for your model 
    attr_accessible :name, :email, :password, :password_confirmation, :remember_me 
end 

的Ruby版本:ruby 1.9.3p362 (2012-12-25 revision 38607) [i686-linux]

感謝您幫助。

回答