add link_to, mail_to to haml snippets

This commit is contained in:
Mike Foley 2013-08-15 12:32:07 -07:00
parent 8b636ddc01
commit 62166691a8

View File

@ -19,6 +19,12 @@ snippet rpl
= render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1} = render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}
snippet rpo snippet rpo
= render :partial => "${1:item}", :object => ${2:@$1} = render :partial => "${1:item}", :object => ${2:@$1}
snippet l link_to
= link_to ${1:name}, ${2:url}
snippet m mail_to
= mail_to ${1:email_address}, ${2:name}
snippet m mail_to subject body
= mail_to ${1:email_address}, ${2:name}, :subject => ${3:subject}, :body
snippet ife snippet ife
- if ${1:condition} - if ${1:condition}
${2} ${2}