Authlogic problem

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”

‘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:inrun’
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:inrequire’
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:innew_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:ingem_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:inrequire’
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:inrequire’
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:inrequire’
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:

Does anyone know what’s going wrong?

On 21 Feb 2011, at 16:00, Kelly P. [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs