Permalink
Browse files

Wrap a piece of code to a code block

  • Loading branch information...
1 parent 2767f01 commit d279d3e165de1bcdb51fd673e043f2c68d21501d @robin850 robin850 committed Oct 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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:

0 comments on commit d279d3e

Please sign in to comment.