Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 603 Bytes

paperclip_attachment.md

File metadata and controls

28 lines (20 loc) · 603 Bytes

Paperclip Integration

Attachment Row

show do
  attributes_table do
    attachment_row("My doc", :attachment, label: 'Download pdf file', truncate: false)
  end
end

Attachment Column

index do
  attachment_column :document
end

Options

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