SpinaCMS/Spina

View on GitHub
docs/v2/rendering_content/6_attachment.md

Summary

Maintainability
Test Coverage
# Attachment

You can upload any file as an attachment using ActiveStorage. Use the `content.attachment_url` helper to render the URL.

## Theme configuration

```
config.parts = [
  # ...
  {
    name: "file",
    title: "File",
    part_type: "Spina::Parts::Attachment"
  }
]
```

```
<%= content.attachment_url(:file) %>
```