aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/working_with_javascript_in_rails.md
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-10-23 22:25:21 +0200
committerXavier Noria <fxn@hashref.com>2012-10-23 22:25:21 +0200
commit9d66c4018917bf55a98c1bf722c8825576e3b79d (patch)
tree5609b72944e9945e6d85b20ae8004eb052e81399 /guides/source/working_with_javascript_in_rails.md
parentc3d4fc40a58d5f0851c0c68029d9737a579da6bf (diff)
downloadrails-9d66c4018917bf55a98c1bf722c8825576e3b79d.tar.gz
rails-9d66c4018917bf55a98c1bf722c8825576e3b79d.tar.bz2
rails-9d66c4018917bf55a98c1bf722c8825576e3b79d.zip
JS guide: applies guides casing guidelines for titles [ci skip]
Diffstat (limited to 'guides/source/working_with_javascript_in_rails.md')
-rw-r--r--guides/source/working_with_javascript_in_rails.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md
index 5e6e5b4d60..5a53d03423 100644
--- a/guides/source/working_with_javascript_in_rails.md
+++ b/guides/source/working_with_javascript_in_rails.md
@@ -1,4 +1,4 @@
-Working With JavaScript in Rails
+Working with JavaScript in Rails
================================
This guide covers the built-in Ajax/JavaScript functionality of Rails (and
@@ -13,7 +13,7 @@ ease! We will cover the following topics:
-------------------------------------------------------------------------------
-An introduction to Ajax
+An Introduction to Ajax
------------------------
In order to understand Ajax, you must first understand what a web browser does
@@ -244,7 +244,7 @@ this generates
Since it's just a `<form>`, all of the information on `form_for` also applies.
-Server side concerns
+Server-Side Concerns
--------------------
Ajax isn't just client-side, you also need to do some work on the server
@@ -335,7 +335,7 @@ Turbolinks
Rails 4 ships with the [Turbolinks gem](https://github.com/rails/turbolinks).
This gem uses Ajax to speed up page rendering in most applications.
-### How Turbolinks works
+### How Turbolinks Works
Turbolinks attaches a click handler to all `<a>` on the page. If your browser
supports
@@ -356,7 +356,7 @@ attribute to the tag:
<a href="..." data-no-turbolink>No turbolinks here</a>.
```
-### Page Change events
+### Page Change Events
When writing CoffeeScript, you'll often want to do some sort of processing upon
page load. With jQuery, you'd write something like this:
@@ -379,7 +379,7 @@ For more details, including other events you can bind to, check out [the
Turbolinks
README](https://github.com/rails/turbolinks/blob/ec9ca4d6cf9626e03a672f3b9e7968c816aff94e/README.md).
-Other resources
+Other Resources
---------------
Here are some helpful links to help you learn even more: