From d279d3e165de1bcdb51fd673e043f2c68d21501d Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Sun, 21 Oct 2012 17:48:40 +0300 Subject: Wrap a piece of code to a code block --- guides/source/working_with_javascript.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source/working_with_javascript.md') 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: -- cgit v1.2.3