Show Menu
Cheatography

My cheat Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Git

ad
add -A
ci
commit
cim
commit -m
st
status
br
branch
co
checkout
 

ERB

er
<% %>
pe
<%= %>
pc
<%# %>
if
<% if %>...<% end %>
ife
<% if %>...<% else %>...<% end %>
else
<% else %>
elsif
<% elsif %>
unlsess
<% unless %>...<% end %>
end
<% end %>
st
<%= submit_tag ..., ... %>
tft
<%= text_f­iel­d_tag ..., ... %>
pft
<%= passwo­rd_­fie­ld_tag ..., ... %>
lblt
<%= label_tag ..., ... %>
lt
<%= link_to ..., ... %>
each
<% @thing­s.each do |thing| %> ... <% end %>
ff
<%= form_for(@ ) do |f| %> ... <% end %>
t
<%= t('@') %>