diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-03-20 01:50:53 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-03-20 01:50:53 +0530 |
commit | 926357040b7c5e19efb3bd1b51338621577d0138 (patch) | |
tree | fe5e84b602ff792d5abfbab2d04d5476a2a7877b /guides/source | |
parent | 61cd377a64a09c359bb979ed6c141519999a3632 (diff) | |
download | rails-926357040b7c5e19efb3bd1b51338621577d0138.tar.gz rails-926357040b7c5e19efb3bd1b51338621577d0138.tar.bz2 rails-926357040b7c5e19efb3bd1b51338621577d0138.zip |
fix introduced `:` ; fix another typo
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_instrumentation.md | 2 | ||||
-rw-r--r-- | guides/source/form_helpers.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md index b1ab700f59..69421e6876 100644 --- a/guides/source/active_support_instrumentation.md +++ b/guides/source/active_support_instrumentation.md @@ -465,7 +465,7 @@ Creating custom events Adding your own events is easy as well. `ActiveSupport::Notifications` will take care of all the heavy lifting for you. Simply call `instrument` with a `name`, `payload` and a block. The notification will be sent after the block returns. `ActiveSupport` will generate the start and end times -as well as the unique ID. All data passed into the `insturment` call will make it into the payload. +as well as the unique ID. All data passed into the `instrument` call will make it into the payload. Here's an example: diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md index dd641c2e29..4e935442cc 100644 --- a/guides/source/form_helpers.md +++ b/guides/source/form_helpers.md @@ -423,7 +423,7 @@ Whenever Rails sees that the internal value of an option being generated matches TIP: The second argument to `options_for_select` must be exactly equal to the desired internal value. In particular if the value is the integer 2 you cannot pass "2" to `options_for_select` — you must pass 2. Be aware of values extracted from the `params` hash as they are all strings. -WARNING: when `:include_blank` or `:prompt:` are not present, `:include_blank` is forced true if the select attribute `required` is true, display `size` is one and `multiple` is not true. +WARNING: when `:include_blank` or `:prompt` are not present, `:include_blank` is forced true if the select attribute `required` is true, display `size` is one and `multiple` is not true. You can add arbitrary attributes to the options using hashes: |