-
-
Save redross/4538398 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WHICH IS BETTER HELPER? | |
# ----------------- | |
%Q{ | |
<div class="invitation-info-box clearfix"><p> | |
#{invite_friends_link} | |
#{t('app.invitation.info_box_signed_in')} | |
</p></div> | |
}.html_safe | |
# ----------------- | |
content_tag(:div, | |
content_tag(:p, | |
[ | |
invite_friends_link, | |
t('app.invitation.info_box_signed_in') | |
].join.html_safe | |
), | |
:class => 'invitation-info-box clearfix') | |
# ----------------- | |
friends_link = content_tag(:p, | |
[ | |
invite_friends_link, | |
t('app.invitation.info_box_signed_in') | |
].join.html_safe | |
) | |
content_tag(:div, friends_link, class: 'invitation-info-box clearfix') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment