未验证 提交 51f912f1 编写于 作者: R Rafael Mendonça França

Merge pull request #29152 from djforth/master

Update to Rails ujs readme
......@@ -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
------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册