Some common tasks in the development business are done no matter the programming language you use. Debugging is one of those tasks. While developing web applications I often need to debug the View layer and it is kind of a tedious job to write while loops to inspect variables values, for example.
Rails provides some interesting helper methods for your views:
debug
This helper method will return the information about any object in YAML format, which is very human readable. To use this command, just type:
Recent comments
17 weeks 6 days ago
17 weeks 6 days ago
18 weeks 1 day ago
18 weeks 3 days ago
19 weeks 10 hours ago
19 weeks 11 hours ago
24 weeks 3 days ago
25 weeks 3 hours ago
25 weeks 5 days ago
26 weeks 4 days ago