You are on page 1of 1

for errors/omissions/suggestions, pls email sebastian@feldpost.com

Created by Sebastian Friedrich, 03/08/06

Keys: ⌃ control ⌥ option ⌘ apple/cmd ⇧ shift shortcut tab trigger
Keys:
⌃ control
⌥ option
⌘ apple/cmd
⇧ shift
shortcut
tab trigger

Textmate Rails Bundle Cheat Sheet

for syncPEOPLE on Rails v.1.0

Go To (Commands) ⌘⌥↓ Go To Alternate File (view/ctrl) ⌘⌥↑ Go To File on Current
Go To (Commands)
⌘⌥↓
Go To Alternate File (view/ctrl)
⌘⌥↑
Go To File on Current Line
⌘⌥⇧↓
Show "Alternate File" Choices
Partials (Marcos) ⌃⇧” w/ selection: Create new Partial from Selection ⌃⇧” Toggle to edit all
Partials (Marcos)
⌃⇧”
w/ selection: Create new Partial from Selection
⌃⇧”
Toggle to edit all linked Partials in View
Model bt belongs_to hm has_many ho has_one
Model
bt
belongs_to
hm
has_many
ho
has_one
Environment ⌃ P params[…] ⌃ J session[…] logi logger.info flash flash[…]
Environment
P
params[…]
J
session[…]
logi
logger.info
flash
flash[…]
Controller (Snippets) rcea render_component (action) rcec render_component (controller) rceca render_component
Controller (Snippets)
rcea
render_component (action)
rcec
render_component (controller)
rceca
render_component (controller, action)
rea
redirect_to (action)
reai
redirect_to (action, id)
rec
redirect_to (controller)
reca
redirect_to (controller, action)
recai
redirect_to (controller, action, id)
verify
verify - redirect / verify - render
View (Snippets) ⌃ X <% code %> ⌃ Z <%= output %> forin for in
View (Snippets)
⌃ X
<% code %>
⌃ Z
<%= output %>
forin
for
in
end…
ft
form_tag
lia
link_to (action)…
liai
link_to (action, id)
lic
link_to (controller)…
lica
link_to (controller, action)…
licai
link_to (controller, action, id)…
Render (Snippets) rfu render (file,use_full_path)… ril render (inline,locals)… rpo render (partial,object)…
Render (Snippets)
rfu
render (file,use_full_path)…
ril
render (inline,locals)…
rpo
render (partial,object)…
ral
render (action,layout)…
ra
render (action)
rtlt
render (text,layout => true)…
rl
render (layout)…
rpl
render (partial,locals)…
rps
render (partial,status)…
rpc
render (partial,collection)…
rtl
render (text,layout)…
rn
render (nothing)…
rns
render (nothing,status)…
rp
render (partial)…
rit
render (inline,type)…
ri
render (inline)…
rt
render (text)…
Migration (Snippets) mcdt Migration Create and Drop Table mdct Migration Drop and Create Table mcc
Migration (Snippets)
mcdt
Migration Create and Drop Table
mdct
Migration Drop and Create Table
mcc
Migration Create Column
marc
Migration Add and Remove Column
mrac
Migration Remove and Add Column
mct
Migration Create Table
mdt
Migration Drop Table
mac
Migration Add Column
mrc
Migration Remove Column
Assertions (Snippets)
ae
Test Assert Equal
ann
Test Assert Not Nil
ako
Assert Kind Of
are
Assert Response
ar
Assert Raise
art
Assert Redirected To
Validation (Snippets)
va
Validates Associated
vaif
Validates Associated If
vc
Validates Confirmation Of
vcif
Validates Confirmation Of If
ve
Validates Exclusion Of
veif
Validates Exclusion Of If
vp
Validates Presence Of
vpif
Validates Presence Of If
vu
Validates Uniqueness Of
vuif
Validates Uniqueness Of If