Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Wrap a piece of code to a code block

  • Loading branch information...
commit d279d3e165de1bcdb51fd673e043f2c68d21501d 1 parent 2767f01
@robin850 robin850 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  guides/source/working_with_javascript.md
2  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:
Please sign in to comment.
Something went wrong with that request. Please try again.