0% found this document useful (0 votes)
718 views1 page

Textmate Rails

Uploaded by

luinithil
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
718 views1 page

Textmate Rails

Uploaded by

luinithil
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

View (Snippets) Migration (Snippets)

Keys: Textmate Rails Bundle Cheat Sheet


for syncPEOPLE on Rails v.1.0 ⌃X <% code %> mcdt Migration Create and Drop Table
⌃ control
⌥ ⌃Z <%= output %> mdct Migration Drop and Create Table
option
Go To (Commands) forin for .. in .. end… mcc Migration Create Column
⌘ apple/cmd

⇧ ⌘⌥↓ Go To Alternate File (view/ctrl) ft form_tag marc Migration Add and Remove Column
shift

shortcut
⌘⌥↑ Go To File on Current Line lia link_to (action)… mrac Migration Remove and Add Column

⌘⌥⇧↓ Show "Alternate File" Choices liai link_to (action, id) mct Migration Create Table
tab trigger
lic link_to (controller)… mdt Migration Drop Table

lica link_to (controller, action)… mac Migration Add Column


Partials (Marcos)
licai link_to (controller, action, id)… mrc Migration Remove Column
⌃⇧” w/ selection: Create new Partial from Selection
Assertions (Snippets)
⌃⇧” Toggle to edit all linked Partials in View Render (Snippets)
rfu render (file,use_full_path)… ae Test Assert Equal

ril render (inline,locals)… ann Test Assert Not Nil


Model Environment ako Assert Kind Of
rpo render (partial,object)…
bt belongs_to ⌃P params[…]
are
for errors/omissions/suggestions, pls email [email protected]

Assert Response
ral render (action,layout)…
hm has_many ⌃J session[…]
ar Assert Raise
ra render (action)...
ho has_one logi logger.info
art Assert Redirected To
Created by Sebastian Friedrich, 03/08/06

rtlt render (text,layout => true)…


flash flash[…]
rl render (layout)… Validation (Snippets)
Controller (Snippets) rpl render (partial,locals)… va Validates Associated

rcea render_component (action) rps render (partial,status)… vaif Validates Associated If

rcec render_component (controller) rpc render (partial,collection)… vc Validates Confirmation Of

rceca render_component (controller, action) rtl render (text,layout)… vcif Validates Confirmation Of If

rea redirect_to (action) rn render (nothing)… ve Validates Exclusion Of

reai redirect_to (action, id) rns render (nothing,status)… veif Validates Exclusion Of If

rec redirect_to (controller) rp render (partial)… vp Validates Presence Of

reca redirect_to (controller, action) rit render (inline,type)… vpif Validates Presence Of If

recai redirect_to (controller, action, id) ri render (inline)… vu Validates Uniqueness Of

verify verify - redirect / verify - render rt render (text)… vuif Validates Uniqueness Of If

You might also like