gluttonberg/lib/gluttonberg/helpers/content.rb
# Finds the matching content block and determines the helper it needs
# to execute to actually write the contents to page.
# TODO: if there is no way to to render the content, freak out and raise
# an error
Finds the matching content block and determines the helper it needs
to execute to actually write the contents to page.
TODO: if there is no way to to render the content, freak out and raise
an error
Finds the matching content block and determines the helper it needs to execute to actually write the contents to page . TODO : if there is no way to to render the content freak out and raise an error
def render_image_content(content, opts = {})
        if content.asset
          image_tag(content.asset.url, opts.merge!(:alt => content.asset.name))
        else
          tag(:p, "Image missing")
        end
      end
def render_image_content ( content , opts = { } ) if content . asset image_tag ( content . asset . url , opts . merge! ( :alt => content . asset . name ) ) else tag ( :p , "Image missing" ) end end
Finds the matching content block and determines the helper it needs
to execute to actually write the contents to page.
Finds the matching content block and determines the helper it needs to execute to actually write the contents to page .
content
opts