def blog_body_content blog
youtube_videos = blog.body.scan(/\[youtube:+.+\]/)
b = blog.body.dup.gsub(/\[youtube:+.+\]/, '')
out = sanitize textilize(b)
unless youtube_videos.empty?
out << <<-EOB
<strong>#{pluralize youtube_videos.size, 'video'}:</strong><br/>
EOB
youtube_videos.each do |o|
out << tb_video_link(o.gsub!(/\[youtube\:|\]/, ''))
end
end
out
end
I couldn't find documentation online for what EOB is in RoR. I'm
guessing it just appends a block of html? Is it part of some included
module? Anyone got a link to documentation on it?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" 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/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---