aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/working_with_javascript_in_rails.md
Commit message (Collapse)AuthorAgeFilesLines
* Update links and code examples in the guides to use HTTPS where the host ↵Nathaniel Suchy2019-03-061-3/+3
| | | | supports it.
* Revert "Merge pull request #35216 from CHTJonas/patch-1"Ryuta Kamizono2019-02-111-1/+1
| | | | | This reverts commit b46601b56d94a02d944ed9bd9494aeea9cba98c8, reversing changes made to 4e6737f18ab8f0d0e9fbe6f73a92e5d29f1c68f1.
* Correct JavaScript example in guide [ci skip]Charlie Jonas2019-02-101-1/+1
| | | Swap `#users` jQuery selector to correct position and prevent the escaping of HTML.
* Turbolinks is enabled by default in new apps [ci skip]Prathamesh Sonpatki2018-10-031-4/+0
|
* Rails guides are now served over httpsPaul McMahon2018-07-241-1/+1
| | | | | http links will be redirected to the https version, but still better to just directly link to the https version.
* Fix stoppable events in tests and docs.Dmytro Vasin2018-04-141-4/+6
|
* Fix typos [ci skip]Yauheni Dakuka2018-01-111-1/+1
|
* Cosmetic changes [ci skip]Yauheni Dakuka2017-11-301-1/+1
|
* Merge pull request #30881 from dimroc/masterVipul A M2017-11-251-36/+24
|\ | | | | Update documentation to lead with ajax param `event.detail` [ci skip]
| * Update documentation to lead with ajax param `event.detail`Dimitri Roche2017-11-241-4/+9
| |
| * Update documentation to lead with ajax param `event.detail`Dimitri Roche2017-10-131-36/+19
| |
* | Add accept-charset to the output of form_with in JS guide [ci skip]Yoshiyuki Hirano2017-10-151-1/+1
|/
* Fix quotes [ci skip]Yauheni Dakuka2017-09-181-1/+1
|
* Fix grammar in guide [ci skip]Yoshiyuki Hirano2017-08-281-6/+6
| | | | * I've fixed grammar problems in the guide about JavaScript in Rails.
* Use https instead of http in guide [ci skip]Yoshiyuki Hirano2017-08-231-1/+1
|
* Update working_with_javascript_in_rails.mdGuillermo Iguaran2017-08-011-1/+1
|
* Update working_with_javascript_in_rails.mdGuillermo Iguaran2017-08-011-1/+1
|
* [ci skip] Fixed the attribute name for event.detailPrathamesh Sonpatki2017-06-201-3/+3
|
* Updated `working with javascript` readme to support the behavior of rails-ujs.Dmytro Vasin2017-06-151-0/+29
|
* Fix typo in guidesKevin Kim2017-05-211-1/+1
|
* Fix a typo in guide [ci skip]Koichi ITO2017-05-111-1/+1
|
* Small grammar fixesJon Moss2017-04-271-13/+13
| | | | | | Will backport to 5-1-stable, since the original PR landed there. [ci skip]
* Merge pull request #28904 from robin850/update-working-with-javascriptRafael Mendonça França2017-04-271-35/+147
|\ | | | | | | Update the "Working with javascript" guide
| * Add documentation of data attributes for UJS [ci skip]Robin Dupret2017-04-271-1/+97
| |
| * Nest Action View remote helpers one level deeper [ci skip]Robin Dupret2017-04-271-3/+5
| |
| * Add a section with the different Ajax events [ci skip]Robin Dupret2017-04-271-0/+36
| |
| * Update the JavaScript guide to use `form_with`Robin Dupret2017-04-271-29/+7
|/ | | | | | | `form_with` is the new preferred method to deal with generation of HTML forms and it enables Ajax support by default. [ci skip]
* Small grammar fixJon Moss2017-04-161-1/+1
| | | | [ci skip]
* Small grammar fixesJon Moss2017-04-161-2/+2
| | | | [ci skip]
* Fix link to rails-ujsRyunosuke Sato2017-03-301-1/+1
| | | | | https://github.com/rails/rails-ujs is merged into actionview in favor of https://github.com/rails/rails/pull/28098. [skip ci]
* Update some jquery-ujs references to rails-ujsJon Moss2017-03-181-1/+1
| | | | [ci skip]
* Minor syntax changeZach2016-05-101-1/+1
| | | While working on this very example recently, I found that Rails will throw POST errors if you leave an empty block in front the `format.js` when using either `remote: true` or vanilla JS/JQuery.
* Update JavaScript guide for Turbolinks 5Sam Stephenson2016-02-231-6/+6
|
* update turbolinks url [ci skip]mabras2016-02-081-2/+2
|
* doc changesLarry Kyrala2016-02-071-2/+2
| | | | | | | | | | | | | | for rails/rails#23431 modified: guides/source/asset_pipeline.md * description of asset combination from apps and gems, e.g. jquery-rails * after @vipulnsward's related change rails/rails#23479 correction: --skip-sprockets will prevent all of these gems, not just sass-rails and uglifier modified: guides/source/working_with_javascript_in_rails.md * noted that rails.js requires the asset pipeline [ci skip]
* Fix paintIt method in JavaScript guides [ci skip]Prathamesh Sonpatki2015-12-131-2/+2
| | | | | | - Changed "paintIt" to "@paintIt" so that it can be called in an on click handler. - Closes #22568
* Merge pull request #21195 from brooksreese/fix_broken_link_markupYves Senn2015-08-111-1/+1
|\ | | | | | | [ci skip] Fix broken link markup
| * [ci skip] Fix broken link markupBrooks Reese2015-08-111-1/+1
|/
* correct example of button_tag [ci skip]yuuji.yaginuma2015-08-021-1/+1
| | | | wrapper div has been removed in cbb917455f306cf5818644b162f22be09f77d4b2
* Remove NOTE related to format.js [ci skip]Prathamesh Sonpatki2015-06-091-4/+0
| | | | | - The example for which this NOTE was written was removed in https://github.com/rails/rails/pull/20493.
* Removed AJAX example with poor convention adherenceDaniel Steele2015-06-091-24/+0
| | | The removed section promotes putting JS code directly inside the controller, this is not in line with convention.
* Improving remote forms guides [ci skip]Andrey Nering2015-02-161-0/+28
|
* Fix link [ci skip]Andrey Nering2015-02-031-1/+1
|
* - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
| | | | - Changed `IN` to `ON` in all note sentences in guides.
* warn about reading guides in GitHubXavier Noria2014-12-231-0/+2
| | | | References #18148.
* Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip]John Kelly Ferguson2014-05-211-15/+15
|
* Add preventDefault() on click eventPatrick Perey2014-03-071-1/+3
|
* Fix coffeescript sample [ci skip]David Fernandez2014-02-131-1/+1
| | | Replace bind() with on() as suggested by the JQuery bind() documentation: https://api.jquery.com/bind/
* Improve document: working with javascript in rails [ci skip].Juanito Fatas2013-12-141-5/+15
| | | | | | * Add form_tag generated output. * improve some text. * data-remote='true' should use double quotes.
* Add events reference link to the text about jquery-ujs [ci skip]Sadjow Leão2013-08-121-1/+1
|