Cheating on Rails
Posted: October 20th, 2009 | Author: Jerod | Filed under: Tools | View CommentsFellow command-line junkies either love the cheat gem by Chris Wanstrath or they’ve never heard of it.
What “cheat” offers is a plethora (currently 601) of text-based cheat sheets at the tip of your fingers. Go ahead, give it a try:
jerod@mbp:~$ sudo gem install cheat jerod@mbp:~$ cheat apache2
Pretty cool, huh?
Some cheats are kind of long, so pipe them to “less” for pagination:
jerod@mbp:~$ cheat git | less
List all the cheats available:
jerod@mbp:~$ cheat sheets
Or find one matching a search string:
jerod@mbp:~$ cheat sheets | grep [your search string]
To learn more about cheat:
jerod@mbp:~$ cheat cheat
Cheat on Rails
There a bunch of Rails-related cheats, which are great help in a pinch. Here are a few that I highly recommend:
- status_codes – all HTTP status codes and their matching Rails symbols
- rails_migrations – for when you forget valid data types
- rubydebug – debugging is powerful but it’s easy to forget how
- rails_tips – nice reminders and tips for beginners
- jquery – you are using jQuery in your Rails apps, right?
Let me know if you find any juicy cheats that I should know about.
I have been evangelizing cheat for a while, it is an awesome project. I cheat on strftime and curl often, and added some stuff to the gmail one. Make sure to update the cheat wiki if you see something missing.
I have been evangelizing cheat for a while, it is an awesome project. I cheat on strftime and curl often, and added some stuff to the gmail one. Make sure to update the cheat wiki if you see something missing.