#5 ✓resolved
Pedro Gonçalves

Rails 2.2 - undefined method `empty?' for :authlogic:Symbol

Reported by Pedro Gonçalves | November 11th, 2008 @ 09:57 AM


In Rails 2.2 I'm facing the following problem after adding "config.gem :authlogic" to config/environment.rb and trying to generate a controller or starting webrick.

The exception is as follows:

=> Booting WEBrick... /Library/Ruby/Site/1.8/rubygems/source_index.rb:271:in search': undefined methodempty?' for :authlogic:Symbol (NoMethodError) from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/rails/vendor_gem_source_index.rb:119:in search' from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/rails/gem_dependency.rb:202:inspecification' from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/rails/plugin/locator.rb:81:in plugins' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:ininject' from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/rails/plugin/locator.rb:81:in each' from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/rails/plugin/locator.rb:81:ininject' from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/rails/plugin/locator.rb:81:in plugins' from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/rails/plugin/loader.rb:63:inlocate_plugins' ... 21 levels... from /Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/commands/server.rb:49 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:inrequire' from script/server:3

Thank you for checking.

Best Regards,

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket