Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

refile-input

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refile-input

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Refile Input

Refile Input gem adds custom input type to formtastic to use refile file uploader. Well, name is self-explanatory and gem is super-simple. It's built upon refile's input helper.

Installation

Add the gem:

gem "refile-input", require: ["inputs/refile_input"]

Use the gem:

form do |f|
  f.input :image, as: :refile
end

Available options

Gem brings support of the following options:

  • direct determines whether file should be uploaded asynchronously or not. Uploading host might be changed with host option. More about it read in refile documentation. Note that refile's js should be included on the page.
  • image_preview is an option to generate image preview. As arguments it accepts list of refile attachment_url options. Read more here.
  • all formtastic's options such as hint, label, etc.

License

MIT

FAQs

Package last updated on 14 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc