diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-05-26 18:37:03 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-05-26 18:37:03 -0400 |
commit | 51f912f1f37589bcc789eb7d1893075b8eb61cc8 (patch) | |
tree | 7f4b185fc067b6abe719b0bce810549f18df577b /actionview | |
parent | b0dc26f57f5fec4790c78a49cede1557561ca724 (diff) | |
parent | b8d0a08832a8c03e953f797d94e0766d61b3837e (diff) | |
download | rails-51f912f1f37589bcc789eb7d1893075b8eb61cc8.tar.gz rails-51f912f1f37589bcc789eb7d1893075b8eb61cc8.tar.bz2 rails-51f912f1f37589bcc789eb7d1893075b8eb61cc8.zip |
Merge pull request #29152 from djforth/master
Update to Rails ujs readme
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/app/assets/javascripts/README.md | 10 |
1 files changed, 10 insertions, 0 deletions
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 ------------ |