2011-06-20 13:40:28 -04:00
|
|
|
snippet t
|
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
${1:headers}
|
|
|
|
%tr
|
|
|
|
%td
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:headers}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet ul
|
|
|
|
%ul
|
|
|
|
%li
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:item}
|
2011-06-20 13:40:28 -04:00
|
|
|
%li
|
2013-06-05 17:20:03 -04:00
|
|
|
snippet rp
|
2013-07-25 17:17:32 -04:00
|
|
|
= render :partial => "${0:item}"
|
2013-06-05 17:20:03 -04:00
|
|
|
snippet rpc
|
2013-07-25 17:17:32 -04:00
|
|
|
= render :partial => "${1:item}", :collection => ${0:@$1s}
|
2013-06-05 17:20:03 -04:00
|
|
|
snippet rpl
|
2013-07-25 17:17:32 -04:00
|
|
|
= render :partial => "${1:item}", :locals => { :${2:$1} => ${0:@$1}
|
2013-06-05 17:20:03 -04:00
|
|
|
snippet rpo
|
2013-07-25 17:17:32 -04:00
|
|
|
= render :partial => "${1:item}", :object => ${0:@$1}
|
2013-08-15 20:34:23 -04:00
|
|
|
snippet lt
|
|
|
|
= link_to ${1:name}, ${2:dest}
|
|
|
|
snippet mt
|
2013-08-15 15:32:07 -04:00
|
|
|
= mail_to ${1:email_address}, ${2:name}
|
2013-08-15 20:34:23 -04:00
|
|
|
snippet mts
|
|
|
|
= mail_to ${1:email_address}, ${2:name}, :subject => ${3}, :body => ${4}
|
2013-06-07 05:13:19 -04:00
|
|
|
snippet ife
|
|
|
|
- if ${1:condition}
|
|
|
|
${2}
|
|
|
|
- else
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-07 05:13:19 -04:00
|
|
|
snippet ifp
|
|
|
|
- if ${1:condition}.presence?
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-07-29 07:04:04 -04:00
|
|
|
snippet ntc
|
|
|
|
= number_to_currency(${1})
|