[Ruby-activeldap-discuss] Trouble with has_many in my Group model

Kouhei Sutou kou at cozmixng.org
Thu Dec 27 09:37:42 EST 2007


In <D5248FF6-0116-1000-8250-84E380381AFC-Webmail-10022 at mac.com>
  "[Ruby-activeldap-discuss] Trouble with has_many in my Group model" on Thu, 20 Dec 2007 02:18:29 -0800,
  Jeremy Pruitt <jeremypruitt at mac.com> wrote:

> <% @group.members.each do |member| %>
>       <%= member.to_s %>
> <% end %>
> Obviously to_s isn't necessarily the most appropriate method, but it shouldn't break things and the error is happening on the "@group.members.each do |member|" line anyway. This is the error I'm getting when I access the show page:
> '#<ActiveLdap::DistinguishedName:0x314b8bc @rdns=[{"uid"=>"authldapplaceholder"}, {"ou"=>"people"}, {"dc"=>"foobar"}, {"dc"=>"net"}]>' must be either nil, DN value as String or Array or attributes as Hash

I see the problem and cause. I'll fix this tomorrow.


More information about the Ruby-activeldap-discuss mailing list