Ruby crash on DragonFly

Guillaume Ballet gballet at gmail.com
Mon Mar 31 01:42:43 PDT 2008


> 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





More information about the Users mailing list