When I use DataMapper with my Merb project, it creates a log file log/
dm.log and I see nothing but...
Tue, 20 May 2008 02:40:01 GMT ~ info ~ Logfile created
Is this the expected behaviour? How can I get more logging information
like the actual SQL statements being issued. I see some being issued
to STDOU if I run with "merb -i" but I want to log the SQL statements
as I run in non-interactive mode.
Also, I can't seem to eager load associations. I have pastie'd some
demo code at
http://pastie.caboo.se/200642. This seems to geneate
multiple SQL statements instead of eager loading (when loading a
single Article I am attempting to eager load the associated comments,
the article body, and the associated comments bodies).
I am not sure if I am doing it right and I am still VERY new to both
Merb and DataMapper so it could be something very simple that I am
missing for both issues.