Method: Cms::RenderingHelper#attachment_viewer

Defined in:
app/helpers/cms/rendering_helper.rb

#attachment_viewer(content) ⇒ Object

Renders a table of attachments for a given content block. This is intended as a basic view of the content, and probably won’t be suitable for blocks that need to be added directly to pages.



11
12
13
# File 'app/helpers/cms/rendering_helper.rb', line 11

def attachment_viewer(content)
  render :partial => 'cms/attachments/attachment_table', :locals => { :block => content, :can_delete => false }
end