Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add backticks around link_to example in javascript guide [ci skip]

  • Loading branch information...
commit f47026e7f92bcc55390636be1f196daa1c83452b 1 parent 66033a9
@carlosantoniodasilva carlosantoniodasilva authored
View
2  guides/source/form_helpers.md
@@ -900,7 +900,7 @@ end
}
```
-The keys of the `:addresses_attributes` hash are unimportant, they need merely be different for each address.
+The keys of the `:addresses_attributes` hash are unimportant, they need merely be different for each address.
If the associated object is already saved, `fields_for` autogenerates a hidden input with the `id` of the saved record. You can disable this by passing `:include_id => false` to `fields_for`. You may wish to do this if the autogenerated input is placed in a location where an input tag is not valid HTML or when using an ORM where children do not have an id.
View
2  guides/source/working_with_javascript_in_rails.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.