Here's one way to refactor it using an array and content_tag.
content = [
content_tag(:strong, current_user_full_name),
content_tag(:span, "|"),
image_tag("logout.png"),
content_tag(:span, link_to(t('logout'), '#', :id => 'fb_logout'))
]
return content_tag(:div, content.join("\n"), :class => "right
wrapper").html_safe
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.