aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-10-28 12:15:35 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-10-28 12:15:35 -0200
commitf47026e7f92bcc55390636be1f196daa1c83452b (patch)
treec421c97faba35ece30e63662dbe793b294a48864 /guides
parent66033a9ec3cc5361fd0f86595741ae1a6d639e1e (diff)
downloadrails-f47026e7f92bcc55390636be1f196daa1c83452b.tar.gz
rails-f47026e7f92bcc55390636be1f196daa1c83452b.tar.bz2
rails-f47026e7f92bcc55390636be1f196daa1c83452b.zip
Add backticks around link_to example in javascript guide [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/form_helpers.md2
-rw-r--r--guides/source/working_with_javascript_in_rails.md2
2 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md
index ec1f1d4df1..f5db76f217 100644
--- a/guides/source/form_helpers.md
+++ b/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.
diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md
index 27941c9166..6ec92bbfbc 100644
--- a/guides/source/working_with_javascript_in_rails.md
+++ b/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: