2009-07-17 3 views
0

奇妙なエラーの取得。 2.3.2で動作するはずのTypus rails adminプラグインをインストールしました。しかし、インストールした後は、私のユーザモデルが混乱するようです。どこから始めるべきかわからない、アイデアは? gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in /custom_require.rb:31:inTypusレールプラグインをインストールした後の `load_missing_constant '

=> Booting Mongrel 
    => Rails 2.3.2 application starting on http://0.0.0.0:3000 
    /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant Typus::Authentication::ByPassword (NameError) 
     from /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing' 
     from /Users/apple/Sites/app/app/models/user.rb:10 
     from /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' 
     from /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:380:in `load_file' 
     from /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in' 
     from /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:379:in `load_file' 
     from /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:259:in `require_or_load' 
     from /Users/apple/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:425:in `load_missing_constant' 
     ... 35 levels... 
     from /Users/apple/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/server.rb:84 
     from /Library/Ruby/Site/1.8/rubygems 

」スクリプト/サーバーから が必要です:3

答えて

1

あなたはrestful_authenticationを使用していますか?

もしそうなら、「認証」モジュールrestful_authenticationが提供するものとTypusに含まれるものとの間に名前の衝突があります。

restful_authenticationのモジュールへの参照をすべてAuthenticationからRestfulAuthenticationに変更し、vendor/plugins/restful_authentication/lib/authentication.rbのモジュール名を変更しました。モデルが使用するモジュールを指定するより良い方法があるかどうかは不明です。

0

また、あなたがRESTfulな認証を前に付けることができます::矛盾を解消するために、

を::認証の代わりに、認証

関連する問題