def login_block
ret = ""
ret += "<div class='right wrapper'>"
ret +="<strong>#{current_user_full_name}</strong>"
ret += "<span>|</span>"
ret += image_tag("logout.png")
ret += "<span>#{link_to t('logout'),'#',:id =>
'fb_logout'}</span>"
ret += "</div>"
ret = ""
ret += "<div class='right wrapper'>"
ret +="<strong>#{current_user_full_name}</strong>"
ret += "<span>|</span>"
ret += image_tag("logout.png")
ret += "<span>#{link_to t('logout'),'#',:id =>
‘fb_logout’}"
ret += "</div>"
ret.html_safe
end
if you’re using rails3, you can use a content_tag with a block
content_tag :div, {:class => ‘right wrapper’}, false do