Monday, October 25, 2010

[Rails] Re: use net/ldap from my controller

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate