2012-08-17 03:41:25 +00:00
|
|
|
snippet t
|
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
${1:headers}
|
|
|
|
%tr
|
|
|
|
%td
|
2013-11-16 19:45:48 +00:00
|
|
|
${0:headers}
|
2012-08-17 03:41:25 +00:00
|
|
|
snippet ul
|
|
|
|
%ul
|
|
|
|
%li
|
2013-11-16 19:45:48 +00:00
|
|
|
${0:item}
|
2012-08-17 03:41:25 +00:00
|
|
|
%li
|
2013-07-17 23:06:05 +00:00
|
|
|
snippet rp
|
2013-11-16 19:45:48 +00:00
|
|
|
= render :partial => "${0:item}"
|
2013-07-17 23:06:05 +00:00
|
|
|
snippet rpc
|
2013-11-16 19:45:48 +00:00
|
|
|
= render :partial => "${1:item}", :collection => ${0:@$1s}
|
2013-07-17 23:06:05 +00:00
|
|
|
snippet rpl
|
2017-07-06 12:57:35 +00:00
|
|
|
= render :partial => "${1:item}", :locals => { :${2:$1} => ${0:@$1} }
|
2013-07-17 23:06:05 +00:00
|
|
|
snippet rpo
|
2013-11-16 19:45:48 +00:00
|
|
|
= render :partial => "${1:item}", :object => ${0:@$1}
|
|
|
|
snippet lt
|
|
|
|
= link_to ${1:name}, ${2:dest}
|
|
|
|
snippet mt
|
|
|
|
= mail_to ${1:email_address}, ${2:name}
|
|
|
|
snippet mts
|
|
|
|
= mail_to ${1:email_address}, ${2:name}, :subject => ${3}, :body => ${4}
|
2013-07-17 23:06:05 +00:00
|
|
|
snippet ife
|
|
|
|
- if ${1:condition}
|
2017-02-11 13:01:38 +00:00
|
|
|
${2:${VISUAL}}
|
2013-07-17 23:06:05 +00:00
|
|
|
- else
|
2013-11-16 19:45:48 +00:00
|
|
|
${0}
|
2013-07-17 23:06:05 +00:00
|
|
|
snippet ifp
|
|
|
|
- if ${1:condition}.presence?
|
2017-02-11 13:01:38 +00:00
|
|
|
${0:${VISUAL}}
|
2013-08-03 12:50:12 +00:00
|
|
|
snippet ntc
|
|
|
|
= number_to_currency(${1})
|