
Rails 2.2 - undefined method `empty?' for :authlogic:Symbol
Reported by Pedro Gonçalves | November 11th, 2008 @ 09:57 AM
Hi,
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 method
empty?' 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:in
specification'
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:in
inject'
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:in
inject'
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:in
locate_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:in
require'
from script/server:3
Thank you for checking.
Best Regards,
Pedro
Comments and changes to this ticket
-
Ben Johnson November 11th, 2008 @ 12:38 PM
- State changed from new to open
That is really strange, try changing it to:
config.gem "authlogic"
Let me know if that fixes it.
-
Ben Johnson November 12th, 2008 @ 10:10 PM
- State changed from open to resolved
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.
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.