$ command line cheat sheets
Cheat Sheet Title: [ no_spaces_alphanumeric_only ]
Cheat Sheet:Here's a simple ERB snippet to output an address if you don't know which components of the address will be provided. <%= record.address + content_tag(:br) if record.address %> <%= record.address2 + content_tag(:br) if record.address2 %> <%= record.city.to_s + (record.state || record.zip ? ',' : '') %> <%= "#{record.state} #{record.zip}" %> <%= content_tag(:br) + record.country if record.country %>
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.