Adding docs link to ujs readme

This commit is contained in:
Michael Bianco 2021-06-28 14:52:11 -06:00
parent 5f7c5ad109
commit 9508b4b3c3
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ This unobtrusive scripting support file is developed for the Ruby on Rails frame
- make forms or hyperlinks submit data asynchronously with Ajax;
- have submit buttons become automatically disabled on form submit to prevent double-clicking.
These features are achieved by adding certain [`data` attributes][data] to your HTML markup. In Rails, they are added by the framework's template helpers.
These features are achieved by adding certain [`data` attributes][data] to your HTML markup. Documentation about the various supported `data` attributes is [available here][ujsdocs]. In Rails, they are added by the framework's template helpers.
## Optional prerequisites
@ -55,3 +55,4 @@ rails-ujs is released under the [MIT License](MIT-LICENSE).
[data]: https://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-attributes "Embedding custom non-visible data with the data-* attributes"
[validator]: https://validator.w3.org/
[csrf]: https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html
[ujsdocs]: https://github.com/rails/jquery-ujs/wiki