/ Published in: Ruby
![](/img/icon_sav.png?v3)
Add this inside your .irbrc file to call "show Model" in your console instead of "y Model.column_names"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#add this inside .irbrc #shortcut for y model.column_names def show(obj) y(obj.send("column_names")) end
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)