View logger output in rails console

First you need start the console and then assign rails logger it to use standard out.
rails c 
>> Rails.logger =
>> User.class_method_to_debug
You can use similar approach to debug rake tasks etc. You can find more information here Debugging rails applications


Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Difference between Validations, Callbacks and Observers