diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2012-10-21 17:48:40 +0300 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2012-10-21 17:48:40 +0300 |
commit | d279d3e165de1bcdb51fd673e043f2c68d21501d (patch) | |
tree | 09555c62413abff1678a816c3093891b407e28c6 /guides/source | |
parent | 2767f01be05e3714b250f8c2743b7f5e1b0833ac (diff) | |
download | rails-d279d3e165de1bcdb51fd673e043f2c68d21501d.tar.gz rails-d279d3e165de1bcdb51fd673e043f2c68d21501d.tar.bz2 rails-d279d3e165de1bcdb51fd673e043f2c68d21501d.zip |
Wrap a piece of code to a code block
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/working_with_javascript.md | 2 |
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: |