Textmate Rails

  • August 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Textmate Rails as PDF for free.

More details

  • Words: 335
  • Pages: 1
Textmate Rails Bundle Cheat Sheet

Keys:

⌃ ⌥ ⌘ ⇧

for syncPEOPLE on Rails v.1.0

control option

Go To (Commands)

apple/cmd shift shortcut tab trigger

⌘⌥↓

Go To Alternate File (view/ctrl)

⌘⌥↑

Go To File on Current Line

⌘⌥⇧↓

Show "Alternate File" Choices

Created by Sebastian Friedrich, 03/08/06

for errors/omissions/suggestions, pls email [email protected]

Partials (Marcos)

⌃⇧”

w/ selection: Create new Partial from Selection

⌃⇧”

Toggle to edit all linked Partials in View

Model

Environment

bt hm ho

⌃P ⌃J logi flash

belongs_to has_many has_one

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

View (Snippets)

Migration (Snippets)

⌃X ⌃Z forin ft lia liai lic lica licai

mcdt mdct mcc marc mrac mct mdt mac mrc

<% 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)…

Render (Snippets)

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

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

Assertions (Snippets)

render (text,layout => true)…

ae ann ako are ar art

render (layout)…

Validation (Snippets)

render (partial,locals)…

va vaif vc vcif ve veif vp vpif vu vuif

render (file,use_full_path)… render (inline,locals)… render (partial,object)… render (action,layout)… render (action)...

render (partial,status)… render (partial,collection)… render (text,layout)… render (nothing)… render (nothing,status)… render (partial)… render (inline,type)… render (inline)… render (text)…

Test Assert Equal Test Assert Not Nil Assert Kind Of Assert Response Assert Raise Assert Redirected To

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

Related Documents

Textmate Rails
August 2019 29
Textmate
August 2019 30
Rails
June 2020 21
Textmate Commands
October 2019 15