提交 d279d3e1 编写于 作者: R Robin Dupret

Wrap a piece of code to a code block

上级 2767f01b
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册