aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/working_with_javascript.md
diff options
context:
space:
mode:
Diffstat (limited to 'guides/source/working_with_javascript.md')
-rw-r--r--guides/source/working_with_javascript.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/working_with_javascript.md b/guides/source/working_with_javascript.md
index 2758564a93..cbdf5c79de 100644
--- a/guides/source/working_with_javascript.md
+++ b/guides/source/working_with_javascript.md
@@ -216,7 +216,9 @@ You can bind to the same AJAX events as `form_for`. Here's an example. Let's
assume that we have a resource `/fib/:n` that calculates the `n`th Fibonacci
number. We would generate some HTML like this:
+```
<%= link_to "Calculate", "/fib/15", remote: true, data: { fib: 15 } %>
+```
and write some CoffeeScript like this: