Peter (Guo) Pei wrote in post #957055: > I downloaded net-ldap gem and had no problem to use it from non-rail > applications. > > But when I require 'net/ldap' from inside a rails controller. Rails > complains that it cannot load > > LoadError (no such file to load -- net/ldap): > app/controllers/supplier_controller.rb:1
You shouldn't be calling it from inside your controllers anyway. That sort of logic goes in a model. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.