Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to reference files in a JQuery plugin in Rails 3.1 using the Sprockets architecture?
    primarykey
    data
    text
    <p>The <a href="http://plupload.com" rel="nofollow">Plupload</a> plugin is a good example. Here's the listing of the plugin added to the <code>vendor</code> directory:</p> <pre><code>./plupload/jquery.plupload.queue ./plupload/jquery.plupload.queue/css ./plupload/jquery.plupload.queue/css/jquery.plupload.queue.css ./plupload/jquery.plupload.queue/img ./plupload/jquery.plupload.queue/img/backgrounds.gif ./plupload/jquery.plupload.queue/img/buttons-disabled.png ./plupload/jquery.plupload.queue/img/buttons.png ./plupload/jquery.plupload.queue/img/delete.gif ./plupload/jquery.plupload.queue/img/done.gif ./plupload/jquery.plupload.queue/img/error.gif ./plupload/jquery.plupload.queue/img/throbber.gif ./plupload/jquery.plupload.queue/img/transp50.png ./plupload/jquery.plupload.queue/jquery.plupload.queue.js ./plupload/jquery.ui.plupload ./plupload/jquery.ui.plupload/css ./plupload/jquery.ui.plupload/css/jquery.ui.plupload.css ./plupload/jquery.ui.plupload/img ./plupload/jquery.ui.plupload/img/plupload-bw.png ./plupload/jquery.ui.plupload/img/plupload.png ./plupload/jquery.ui.plupload/jquery.ui.plupload.js ./plupload/plupload.browserplus.js ./plupload/plupload.flash.js ./plupload/plupload.flash.swf ./plupload/plupload.full.js ./plupload/plupload.gears.js ./plupload/plupload.html4.js ./plupload/plupload.html5.js ./plupload/plupload.js ./plupload/plupload.silverlight.js ./plupload/plupload.silverlight.xap </code></pre> <p>Instead of relocating these files into various stylesheets, javascripts, and images directories, it's better to leave them in place and reference them with the Sprockets require directive. How is this done, particularly with respect to image files and other assets like .swf and .xap?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload