On 21 Feb 2011, at 16:00, Kelly Pfaff
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
> I can''t get authlogic to work.
> (https://github.com/binarylogic/authlogic)
>
> i''ve installed it,
> i''ve put the following in environment.rb:
> config.gem "authlogic"
>
If my memory is correct, rails 2.0.2 predates the existence of config.gem
You may be able to just require the gem by hand, but you might find that
authlogic just doesn''t work with such an old version of rails
Fred
> ''gem list'' gives:
> *** LOCAL GEMS ***
>
> abstract (1.0.0)
> actionmailer (3.0.3, 2.0.2)
> actionpack (3.0.3, 2.0.2)
> activemodel (3.0.3)
> activerecord (3.0.3, 2.0.2)
> activeresource (3.0.3, 2.0.2)
> activesupport (3.0.3, 2.0.2)
> arel (2.0.7)
> authlogic (2.1.6)
> builder (2.1.2)
> bundler (1.0.10)
> erubis (2.6.6)
> i18n (0.5.0)
> json (1.5.1 x86-mingw32)
> mail (2.2.15)
> mime-types (1.16)
> nifty-generators (0.4.5)
> open4 (1.0.1)
> pg (0.10.1)
> Platform (0.4.0)
> polyglot (0.3.1)
> POpen4 (0.1.4)
> rack (1.2.1)
> rack-mount (0.6.13)
> rack-test (0.5.7)
> rails (3.0.3, 2.0.2)
> railties (3.0.3)
> rake (0.8.7)
> rb-readline (0.4.0)
> rubyzip2 (2.0.1)
> sqlite3 (1.3.3 x86-mingw32)
> sqlite3-ruby (1.3.3)
> thor (0.14.6)
> treetop (1.4.9)
> tzinfo (0.3.24)
> win32-open3 (0.3.2 x86-mingw32)
> ----------------------------------
> when i try to start the server with ''>ruby script/server
webrick'':
> => Booting WEBrick...
> C:/prails/zwemschool/config/environment.rb:22: private method
`gem''
> called for #
> <Rails::Configuration:0x33398b8> (NoMethodError)
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
> initializer.rb:47:in `run''
> from C:/prails/zwemschool/config/environment.rb:13
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
> require.rb:31:in `gem_original_require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
> require.rb:31:in `require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
> 0.2/lib/active_support/dependencies.rb:496:in `require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
> 0.2/lib/active_support/dependencies.rb:342:in `new_constants_in''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
> 0.2/lib/active_support/dependencies.rb:496:in `require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
> commands/servers/webrick.rb:59
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
> require.rb:31:in `gem_original_require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
> require.rb:31:in `require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
> 0.2/lib/active_support/dependencies.rb:496:in `require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
> 0.2/lib/active_support/dependencies.rb:342:in `new_constants_in''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.
> 0.2/lib/active_support/dependencies.rb:496:in `require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
> commands/server.rb:39
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
> require.rb:31:in `gem_original_require''
> from
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_
> require.rb:31:in `require''
> from script/server:3
>
> -----------------------------------
> RubyGems Environment:
> - RUBYGEMS VERSION: 1.3.7
> - RUBY VERSION: 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]
> - INSTALLATION DIRECTORY:
> D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
> - RUBY EXECUTABLE: D:/RailsInstaller/Ruby1.8.7/bin/ruby.exe
> - EXECUTABLE DIRECTORY: D:/RailsInstaller/Ruby1.8.7/bin
> - RUBYGEMS PLATFORMS:
> - ruby
> - x86-mingw32
> - GEM PATHS:
> - D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
> - C:/Documents and Settings/Hoofdaccount/.gem/ruby/1.8
> - GEM CONFIGURATION:
> - :update_sources => true
> - :verbose => true
> - :benchmark => false
> - :backtrace => false
> - :bulk_threshold => 1000
> - REMOTE SOURCES:
> - http://rubygems.org/
> --------------------------------------
> Does anyone know what''s going wrong?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.