DragonFly users List (threaded) for 2008-03
DragonFly BSD
DragonFly users List (threaded) for 2008-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Ruby crash on DragonFly


From: "Guillaume Ballet" <gballet@xxxxxxxxx>
Date: Mon, 31 Mar 2008 10:36:47 +0200

> The code in question in model class Client:
>
> def zones
>        Zone.find(:all, :attribute => "clientId", :value => "#{self.id}")
> end
>
> if i call it from the controller like
>        @zones = client.zones
>
> it works, but if i put this in the the view, it crashes.

Well, views are only supposed to render HTML, so I guess it might
never have been intended to work in a view-rendering environment.
Granted, I'm just nagging here :P

What happens on your console if you use the tracer as follows?

Tracer.on
@zones = client.zones
Tracer.off

Guillaume



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]