Rails console formatting

Problem

You would like to have a formatted output in your console when you want to have a look at an objects methods for example (o.methods).

 

Solution

You can use the y before the o.methods like below:

 

y o.methods