Keys

:

Textmate Rails Bundle Cheat Sheet
for syncPEOPLE on Rails v.1.0

View (Snippets)

Migration (Snippets)

⌃ ⌥ ⌘ ⇧

control option apple/cmd shift shortcut tab trigger

Go To (Commands)

⌘⌥↓ ⌘⌥↑ ⌘⌥⇧↓

Go To Alternate File (view/ctrl) Go To File on Current Line Show "Alternate File" Choices

Partials (Marcos)

⌃⇧” ⌃⇧”

⌃X ⌃Z forin ft lia liai lic lica licai

<% code %> <%= output %> for .. in .. end… form_tag link_to (action)… link_to (action, id) link_to (controller)… link_to (controller, action)… link_to (controller, action, id)…

mcdt mdct mcc marc mrac mct mdt mac mrc ae ann ako are ar art va vaif vc vcif ve veif vp vpif vu vuif

Migration Create and Drop Table Migration Drop and Create Table Migration Create Column Migration Add and Remove Column Migration Remove and Add Column Migration Create Table Migration Drop Table Migration Add Column Migration Remove Column

w/ selection: Create new Partial from Selection Toggle to edit all linked Partials in View

Render (Snippets)

Assertions (Snippets)
Test Assert Equal Test Assert Not Nil Assert Kind Of Assert Response Assert Raise Assert Redirected To

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

Environment

Created by Sebastian Friedrich, 03/08/06

bt hm ho

belongs_to has_many has_one

⌃P ⌃J logi flash

params[…] session[…] logger.info flash[…]

Controller (Snippets)

rcea rcec rceca rea reai rec reca recai verify

render_component (action) render_component (controller) render_component (controller, action) redirect_to (action) redirect_to (action, id) redirect_to (controller) redirect_to (controller, action) redirect_to (controller, action, id) verify - redirect / verify - render

rfu ril rpo ral ra rtlt rl rpl rps rpc rtl rn rns rp rit ri rt

render (file,use_full_path)… render (inline,locals)… render (partial,object)… render (action,layout)… render (action)... render (text,layout => true)… render (layout)… render (partial,locals)… render (partial,status)… render (partial,collection)… render (text,layout)… render (nothing)… render (nothing,status)… render (partial)… render (inline,type)… render (inline)… render (text)…

Validation (Snippets)
Validates Associated Validates Associated If Validates Confirmation Of Validates Confirmation Of If Validates Exclusion Of Validates Exclusion Of If Validates Presence Of Validates Presence Of If Validates Uniqueness Of Validates Uniqueness Of If