Bundle "Rails"

Snippets

Trigger Title
Ctrl+Alt+X <% code %>
Ctrl+Shift+Z <%= output %>
mac Add Column
mcc Create Column
mccc Create Column Continue
mct Create Table
mdt Drop Table
mdct Drop and Create Table
rdb RAILS_DEFAULT_LOGGER.debug
mrc Remove Column
mrac Remove and Add Column
art assert_redirected_to
asre assert_response
bt belongs_to
flash flash[…]
forin for … in … end
ft form_tag
habtm has_and_belongs_to_many
hm has_many
ho has_one
lia link_to (action)
liai link_to (action, id)
lic link_to (controller)
lica link_to (controller, action)
licai link_to (controller, action, id)
ldb logger.debug
logi logger.info
Ctrl+P params[…]
rea redirect_to (action)
reai redirect_to (action, id)
rec redirect_to (controller)
reca redirect_to (controller, action)
recai redirect_to (controller, action, id)
ra render (action)
ral render (action, layout)
rf render (file)
rfu render (file, use_full_path)
ri render (inline)
ril render (inline, locals)
rit render (inline, type)
rl render (layout)
rn render (nothing)
rns render (nothing, status)
rp render (partial)
rpc render (partial, collection)
rpl render (partial, locals)
rpo render (partial, object)
rps render (partial, status)
rt render (text)
rtlt render (text, layout => true)
rtl render (text, layout)
rts render (text, status)
rcea render_component (action)
rcec render_component (controller)
rceca render_component (controller, action)
Ctrl+J session[…]
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
vl validates_length_of
vp validates_presence_of
vpif validates_presence_of if
vu validates_uniqueness_of
vuif validates_uniqueness_of if
verify verify — redirect
verify verify — render