I tried to add the following to my environment.rb:
Rails::Initializer.run do |config|
  config.gem :net-ldap
end

but now rails complains:

C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/application.rb:63:in 
`inherited': You cannot have more than one Rails::Application 
(RuntimeError)
        from 
C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/deprecation.rb:7:in 
`initialize'
        from 
C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/deprecation.rb:7:in 
`new'
        from 
C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/deprecation.rb:7:in 
`run'

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to