[Radiant] Dynamic pages strategies?

Bodhi bodhi at theplant.jp
Fri Aug 25 05:41:19 CDT 2006


On Aug 25, 2006, at 6:29 PM, Guido Sohne wrote:

> On 8/16/06, Adrian Madrid <aemadrid at gmail.com> wrote:
> How do people debug the behaviors, especially when it is running as a
> plugin? I didn't find a logger object to use within the behavior
> (maybe there is one, who knows?), Doing print statements only works
> inside the test runs, and not under tail -f development.log, or even
> the Webrick screen. I had some serious time burnt due to this, until I
> resorted to using ./script/breakpointer. Sometimes too, you get an
> error message trapped nicely for you by Radiant and you just want to
> know what line caused it, but it's not so easy as it could be.

You can do something like:

def logger
   ActiveRecord::Base.logger
end

in your behaviour to get access to a logger while testing...

>
> What's the secret sauce? And does Mailer work for everyone, except  
> maybe me? :-)

It was working for me, but I had hacked it up to do some other things  
(like store inquiries in the database).

I dont have a lot of time to look into it right now though :(

Bodhi



More information about the Radiant mailing list