Created
June 12, 2014 13:00
-
-
Save dacur/b801c65cb6a5850a8fa0 to your computer and use it in GitHub Desktop.
Using logger to debug in Rails. You can include logger statements in controllers and models. The example below will inspect each status element and display all information in the console (log). This can help you determine what is going on at certain points in your application.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def index | |
| logger.debug @statuses.inspect | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment