Log a message when a console rendering is prevented defaults.
Ruby console log.
Usr bin ruby print apple print apple n puts orange puts orange the print and puts methods produce textual output on the console.
Using console log lets you easily see only log messages in this request.
On the underside rails console uses irb so if you ve ever used it you ll be right at home.
The difference between the two is that the latter adds a new line character.
It was designed to give you as quick a start on the ruby logging world as humanly possible.
5 debugging memory leaks.
Think about our toy app.
The console command lets you interact with your rails application from the command line.
When working on the js for bugsnag i kept accidentally typing console log into rails.
So i thought about redirecting to a file if anyone knows a better option i m all ears.
A ruby application on rails or not can leak memory either in the ruby code or at the c code level.
This is useful for testing out quick ideas with code and changing data server side without touching the website.
See even though the demo app logs to a file there s nothing preventing you from logging to a variety of targets such as the database the console or even an online service.