2011-06-20 13:40:28 -04:00
|
|
|
snippet t
|
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
${1:headers}
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
${2:headers}
|
|
|
|
snippet ul
|
|
|
|
%ul
|
|
|
|
%li
|
|
|
|
${1:item}
|
|
|
|
%li
|
2013-06-05 17:20:03 -04:00
|
|
|
snippet rp
|
|
|
|
= render :partial => "${1:item}"
|
|
|
|
snippet rpc
|
|
|
|
= render :partial => "${1:item}", :collection => ${2:@$1s}
|
|
|
|
snippet rpl
|
|
|
|
= render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}
|
|
|
|
snippet rpo
|
|
|
|
= render :partial => "${1:item}", :object => ${2:@$1}
|
2013-06-07 05:13:19 -04:00
|
|
|
snippet ife
|
|
|
|
- if ${1:condition}
|
|
|
|
${2}
|
|
|
|
- else
|
|
|
|
${3}
|
|
|
|
snippet ifp
|
|
|
|
- if ${1:condition}.presence?
|
|
|
|
${2}
|
2013-07-29 07:04:04 -04:00
|
|
|
snippet ntc
|
|
|
|
= number_to_currency(${1})
|