Home

greatbody edited this page Dec 21, 2016 · 2 revisions
Clone this wiki locally

Welcome to the remotipart wiki!

With RequireJS

For thoes who prefer RequireJs

Edit your application.js like this:

requirejs.config({
  baseUrl: '/assets',
  paths: {
    'jquery': 'jquery',
    'jquery.remotipart': 'jquery.remotipart'
  },
  shim: {
    'jquery.remotipart': [ 'jquery' ]
  }
});

require(['jquery', 'jquery_ujs', 'jquery.remotipart']);