$ command line cheat sheets
Cheat Sheet Title: [ no_spaces_alphanumeric_only ]
Cheat Sheet:A Rails console command line tool for exploring, browsing and inspecting the structure, associations and data of ActiveRecord data models. Methods: .lf (list fields): User.lf, user.blogs.lf .la (list attributes): User.la, user.blogs.la .pr (print): puts info in columns user.friends.pr :first_name, :last_name, 'comments.count' User.find(2).blogs.comments.comment.pr .wi (with): limit data OR: User.find(2).blogs.comments.wi(:user_id=>5, :user_id=>9).comments.pr AND: User.find(2).blogs.comments.wi(:blog_id=>6).wi(:user_id=>5).comments.pr User.find(2).blogs.comments.wi('user.last_name.include?("Grant")').comment.pr User.find(2).blogs.comments.wi(20,21,22).comment.pr User.find(2).blogs.comments.wi(:blog_id=>[6,7,8]).comments.pr .wo: opposite of .wi
Your cheat sheet will be editable (fixable) by anyone. Each cheat sheet is essentially a wiki page. It may also be used by millions of people for reference purposes from the comfort of their command line. If this is okay with you, please save.