チートシートに書かれていたrails.vimの略語展開のまとめ。
入力 | 展開 |
---|---|
pa[ | params |
rq[ | request |
rs[ | response |
se[ | session |
hd[ | headers |
te[ | template |
co[ | cookies |
fl[ | flash |
rr( | render |
rp( | render :partial => |
ri( | render :inline => |
rt( | render :text => |
rl( | render :layout => |
ra( | render :action => |
rc( | render :controller => |
rf( | render :file => |
rea( | redirect_to :action=> |
rec( | redirect_to :controller => |
:a | :action => |
:c | :controller => |
:i | :id => |
:o | :object => |
:p | :partial => |
logd( | logger.debug |
logi( | logger.info |
logw( | logger.wran |
loge( | logger.error |
logf( | logger.fatal |
fi( | find |
AR:: | ActiveRecord |
AV:: | ActionView |
AC:: | ActionController |
AS:: | ActiveSupport |
AM:: | ActionMailer |
AWS:: | ActionWebService |