Fixed. Had to delete vendors/rails. Thanks for your help, friends. On Sun, May 29, 2011 at 5:17 PM, Matt Unger <[email protected]> wrote:
> Bruno, > > Thank you very much. I figured this would be a problem that I've overlooked > as I'm not very knowledgeable with rails yet. I've downgraded authlogic, but > I still get this error listed in my original email: > > /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:232:in `activate': > undefined method `map' for nil:NilClass (NoMethodError) > > Thanks for your help. > > On Sun, May 29, 2011 at 5:04 PM, Bruno Bornsztein < > [email protected]> wrote: > >> Hi Matt, >> This is a simple case of gem version incompatibility: you're using >> authlogic 3.0.3, which states clearly in its README that it's not compatible >> with versions of Rails lower than 3.0. Try using a version of Authlogic from >> the 2.X.X series. >> >> Thanks, >> Bruno >> >> On Sun, May 29, 2011 at 1:15 PM, Matt <[email protected]> wrote: >> >>> I'm trying to install but keep running into errors that have left me >>> banging my head for days. Here is the printout when I run "script/ >>> generate plugin_migration" from a few days ago: >>> >>> >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/ >>> gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is >>> deprecated and will be removed on or after August 2010. Use >>> #requirement >>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/ >>> base.rb:1959:in `method_missing': undefined method `class_attribute' >>> for ActiveRecord::Base:Class (NoMethodError) >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/authlogic/ >>> acts_as_authentic/base.rb:7:in `included' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/authlogic/ >>> acts_as_authentic/base.rb:6:in `class_eval' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/authlogic/ >>> acts_as_authentic/base.rb:6:in `included' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/authlogic/ >>> acts_as_authentic/base.rb:97:in `include' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/authlogic/ >>> acts_as_authentic/base.rb:97:in `send' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/authlogic/ >>> acts_as_authentic/base.rb:97 >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `gem_original_require' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `require' >>> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ >>> active_support/dependencies.rb:156:in `require_without_desert' >>> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ >>> active_support/dependencies.rb:521:in `new_constants_in' >>> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ >>> active_support/dependencies.rb:156:in `require_without_desert' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:8:in `require' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:32:in `__each_matching_file' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:7:in `require' >>> from /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/ >>> authlogic.rb:59 >>> from /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/ >>> authlogic.rb:6:in `each' >>> from /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/lib/ >>> authlogic.rb:6 >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `gem_original_require' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `require' >>> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ >>> active_support/dependencies.rb:156:in `require_without_desert' >>> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ >>> active_support/dependencies.rb:521:in `new_constants_in' >>> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ >>> active_support/dependencies.rb:156:in `require_without_desert' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:8:in `require' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:28:in `__each_matching_file' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:27:in `each' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:27:in `__each_matching_file' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ruby/ >>> object.rb:7:in `require' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/authlogic-3.0.3/rails/init.rb: >>> 1:in `evaluate_init_rb' >>> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/ >>> plugin.rb:158:in `evaluate_init_rb' >>> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ >>> active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' >>> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/ >>> plugin.rb:154:in `evaluate_init_rb' >>> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/ >>> plugin.rb:48:in `load_without_desert' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/rails/ >>> 2.0.0/plugin.rb:16:in `load' >>> from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ >>> manager.rb:46:in `register_plugin' >>> from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ >>> manager.rb:11:in `__send__' >>> from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/ >>> manager.rb:11:in `method_missing' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/rails/ >>> 2.0.0/plugin.rb:15:in `load' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/ >>> loader.rb:38:in `load_plugins' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/ >>> loader.rb:37:in `each' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/ >>> loader.rb:37:in `load_plugins' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb: >>> 369:in `load_plugins' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb: >>> 165:in `process' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb: >>> 113:in `send' >>> from >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb: >>> 113:in `run' >>> from /home/mydirectory/myproject/config/environment.rb:13 >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `gem_original_require' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `require' >>> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/ >>> generate.rb:1 >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `gem_original_require' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `require' >>> from script/generate:3 >>> >>> >>> I fixed this by freezing my rails gems. Now I get this error: >>> >>> >>> /home/project/project/config/../vendor/rails/railties/lib/rails/ >>> gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is >>> deprecated and will be removed on or after August 2010. Use >>> #requirement >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:232:in `activate': >>> undefined method `map' for nil:NilClass (NoMethodError) >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:258:in >>> `activate' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:257:in `each' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:257:in >>> `activate' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1146:in `gem' >>> from >>> /home/project/project/config/../vendor/rails/railties/lib/rails/ >>> gem_dependency.rb:73:in `add_load_paths' >>> from /home/project/project/config/../vendor/rails/railties/lib/ >>> initializer.rb:301:in `add_gem_load_paths' >>> from /home/project/project/config/../vendor/rails/railties/lib/ >>> initializer.rb:301:in `each' >>> from /home/project/project/config/../vendor/rails/railties/lib/ >>> initializer.rb:301:in `add_gem_load_paths' >>> from /home/project/project/config/../vendor/rails/railties/lib/ >>> initializer.rb:132:in `process' >>> from /home/project/project/config/../vendor/rails/railties/lib/ >>> initializer.rb:113:in `send' >>> from /home/project/project/config/../vendor/rails/railties/lib/ >>> initializer.rb:113:in `run' >>> from /home/project/project/config/environment.rb:13 >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `gem_original_require' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `require' >>> from /home/project/project/vendor/rails/activesupport/lib/ >>> active_support/dependencies.rb:156:in `require' >>> from /home/project/project/vendor/rails/activesupport/lib/ >>> active_support/dependencies.rb:521:in `new_constants_in' >>> from /home/project/project/vendor/rails/activesupport/lib/ >>> active_support/dependencies.rb:156:in `require' >>> from /home/project/project/vendor/rails/railties/lib/commands/ >>> server.rb:84 >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `gem_original_require' >>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>> 29:in `require' >>> from ./script/server:3 >>> >>> Here are my versions of everything: >>> >>> >>> [mydir ~]$ ruby -v >>> ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux] >>> [mydir ~]$ rails -v >>> Rails 2.3.4 >>> [mydir ~]$ gem -v >>> 1.4.2 >>> [mydir ~]$ gem list >>> >>> *** LOCAL GEMS *** >>> >>> abstract (1.0.0) >>> actionmailer (3.0.7, 2.3.4) >>> actionpack (3.0.7, 2.3.4) >>> activemodel (3.0.7) >>> activerecord (3.0.7, 2.3.11, 2.3.4) >>> activeresource (3.0.7, 2.3.4) >>> activesupport (3.0.7, 2.3.11, 2.3.4) >>> arel (2.0.10) >>> authlogic (3.0.3) >>> builder (2.1.2) >>> bundler (1.0.13) >>> calendar_date_select (1.16.2) >>> desert (0.5.2) >>> erubis (2.6.6) >>> haml (2.0.5) >>> hpricot (0.8.4) >>> htmlentities (4.3.0) >>> i18n (0.5.0) >>> mail (2.2.19) >>> mime-types (1.16) >>> polyglot (0.3.1) >>> rack (1.2.3, 1.1.2, 1.0.1) >>> rack-mount (0.6.14) >>> rack-test (0.5.7) >>> radiant (0.9.1) >>> rails (2.3.4) >>> railties (3.0.7) >>> rake (0.8.3) >>> RedCloth (4.2.7) >>> ri_cal (0.8.8) >>> rmagick (2.13.1) >>> rubygems-update (1.8.4, 1.4.2, 1.3.7) >>> searchlogic (2.5.6) >>> thor (0.14.6) >>> treetop (1.4.9) >>> tzinfo (0.3.27) >>> will_paginate (2.3.15) >>> >>> >>> Does anyone have any clue what's going on? Google hasn't turned up >>> much and I'm lost and new to rails. Thank you for your help. >>> >>> -- >>> >>> You received this message because you are subscribed to the Google Groups >>> "CommunityEngine" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/communityengine?hl=en. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "CommunityEngine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/communityengine?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
