So in python/django I can just put the line print 'something'
in my code and something
will get printed to the console. How do I do this in Rails? I'm on Mac using Pow as my development server.
Rails & Pow - how do I print something to stdout when my server script is being executed in dev?
476 views Asked by tadasajon At
1
Pow stores log files for your apps in
~/Library/Logs/Pow/apps
. You cancd
to this directory in your terminal and then runtail -f my_app.log
to view your log as it updates (-f
is for 'follow'). You can then print from your ruby/rails scripts using theputs
command and the output will appear in this log file.