Sha256: 2ecf2e26f7f143eb0aecda1ccb01073339c0eb53a2136a399f3073bb5b74f231
Contents?: true
Size: 922 Bytes
Versions: 1
Compression:
Stored size: 922 Bytes
Contents
# Administrate::Field::Carrierwave [![Code Climate](https://codeclimate.com/github/z-productions/administrate-field-carrierwave/badges/gpa.svg)](https://codeclimate.com/github/z-productions/administrate-field-carrierwave) A plugin to upload and preview Carrierwave attachments in [Administrate]. ## Usage Add it to your `Gemfile`: ```ruby gem 'administrate-field-carrierwave', '~> 0.0.2' ``` Run: ```bash $ bundle install ``` Add to your `FooDashboard`: ```ruby ATTRIBUTE_TYPES = { bar: Field::Carrierwave.with_options(image: :standard) }.freeze ``` ### Options * `image` (default: `nil`): a [version] that will be displayed in an `<img>` element. ## About `Administrate::Field::Carrierwave` is maintained by [z.productions]. [Administrate]: https://github.com/thoughtbot/administrate [version]: https://github.com/carrierwaveuploader/carrierwave#adding-versions [z.productions]: https://www.z.productions/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-carrierwave-0.0.2 | README.md |