Request.JS for Rails
Rails Request.JS encapsulates the logic to send by default some headers that are required by rails applications like the
- Add the
requestjs-railsgem to your Gemfile:
import "@rails/request.js"to your
Make sure you've already installed
importmap-rails and that it's referenced before
requestjs-rails in your Gemfile.
- Install the Request.JS NPM package.
With the installation done check the documentation in the Rails Request.JS repository.
Request.JS for Rails is released under the MIT License.