How do i print to command prompt from the controller or

class?

i tried puts and STDOUT but no avail. any help? I am trying to debug why
i am getting a nil object when there is data in my table.

THANKS!

koloa wrote:

class?

i tried puts and STDOUT but no avail. any help? I am trying to debug why
i am getting a nil object when there is data in my table.

THANKS!

This doesn’t exactly answer your question, but why not write to the
development log instead using logger.info()?

jp