Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 655 Bytes

File metadata and controls

30 lines (22 loc) · 655 Bytes

Paperclip Integration

Attachment Row

show do
  attributes_table do
    # another attributes...
    attachment_row :document, label: "Download this"
  end
end

Attachment Column

index do
  # another attributes...
  attachment_column :document, truncate: false
end

Options

  • You can pass truncate attribute to toggle truncating the filename. attachment_column truncates by default.
  • Pass label if you want to show another text instead of the filename