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

requestjs-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requestjs-rails

  • 0.0.12
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Request.JS for Rails

Rails Request.JS encapsulates the logic to send by default some headers that are required by rails applications like the X-CSRF-Token.

Installation

  1. Add the requestjs-rails gem to your Gemfile: gem 'requestjs-rails'
  2. Run ./bin/bundle install.
  3. Run ./bin/rails requestjs:install

If using the asset pipeline to manage JavaScript, the last command will:

  • Append import "@rails/request.js" to your app/assets/javascripts/application.js entrypoint.

Make sure you've already installed importmap-rails and that it's referenced before requestjs-rails in your Gemfile.

If using Webpacker to manage JavaScript, the last command will:

  • Install the Request.JS NPM package.

Usage

With the installation done check the documentation in the Rails Request.JS repository.

License

Request.JS for Rails is released under the MIT License.

FAQs

Package last updated on 03 Sep 2024

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