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_field_tag ..., ... %> |
pft |
<%= password_field_tag ..., ... %> |
lblt |
<%= label_tag ..., ... %> |
lt |
<%= link_to ..., ... %> |
each |
<% @things.each do |thing| %> ... <% end %> |
ff |
<%= form_for(@ ) do |f| %> ... <% end %> |
t |
<%= t('@') %> |
|
|
|