uploadcare / uploadcare-rails

Rails API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.

Home Page:https://uploadcare.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asset pipeline integration

timkleier opened this issue · comments

Integrating uploadcare into the asset pipeline, I found that the following statement works instead of what's included in the readme file:

//= require uploadcare

@romanonthego please take a look

sorry, was out of town.
i'll totally check this one today.

meanwhile I will recommend you to use a CDN version or download and include widget in vendor folder manually:

  1. you will have access to source code - comments and mokey-patching could do wonders.
  2. version will be up to date - this gem is not in sync with widget updated i'm afraid.
  3. next versions of gem will not include widget js files at all - we will use bower or other kind of front-end dependency managers (all optional of course).

next versions of gem will not include widget js files at all - we will use bower or other kind of front-end dependency managers (all optional of course)

do want
can't wait

nothing stops anyone from using https://github.com/uploadcare/uploadcare-bower + https://github.com/rharriso/bower-rails right now, they should not conflict.
we could just update README and set up this method as preferable.

Assets pipeline is not supported (at least for now). the = require functionality doesn't work now.