From b8d0a08832a8c03e953f797d94e0766d61b3837e Mon Sep 17 00:00:00 2001 From: Adrian Stainforth Date: Fri, 19 May 2017 21:42:38 +0100 Subject: Update to rails-ujs documentation for yarn install --- actionview/app/assets/javascripts/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionview/app') diff --git a/actionview/app/assets/javascripts/README.md b/actionview/app/assets/javascripts/README.md index 399ebc7324..0819d5da5f 100644 --- a/actionview/app/assets/javascripts/README.md +++ b/actionview/app/assets/javascripts/README.md @@ -36,6 +36,16 @@ Require `rails-ujs` into your application.js manifest. //= require rails-ujs ``` +Usage with yarn +------------ + +When using with Webpacker gem or your preferred JavaScript bundler. Just add the following to your main JS file and compile. + +```javascript +import Rails from 'rails-ujs'; +Rails.start() +``` + How to run tests ------------ -- cgit v1.2.3