aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/api_documentation_guidelines.md
diff options
context:
space:
mode:
authorAvnerCohen <israbirding@gmail.com>2012-10-12 00:28:47 +0200
committerAvnerCohen <israbirding@gmail.com>2012-10-12 00:28:47 +0200
commita2c843885470dddbad9430963190464a22167921 (patch)
tree497b707d686ab50b380728f2756435e9856390d4 /guides/source/api_documentation_guidelines.md
parent61c64dc942a1a5fc142aab09f94f51bff0fee962 (diff)
downloadrails-a2c843885470dddbad9430963190464a22167921.tar.gz
rails-a2c843885470dddbad9430963190464a22167921.tar.bz2
rails-a2c843885470dddbad9430963190464a22167921.zip
1.9 hash syntax changes.
Diffstat (limited to 'guides/source/api_documentation_guidelines.md')
-rw-r--r--guides/source/api_documentation_guidelines.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/api_documentation_guidelines.md b/guides/source/api_documentation_guidelines.md
index dcfa7eb6fb..48b4ddb102 100644
--- a/guides/source/api_documentation_guidelines.md
+++ b/guides/source/api_documentation_guidelines.md
@@ -64,7 +64,7 @@ On the other hand, big chunks of structured documentation may have a separate "E
#
# Person.exists?(5)
# Person.exists?('5')
-# Person.exists?(:name => "David")
+# Person.exists?(name: "David")
# Person.exists?(['name LIKE ?', "%#{query}%"])
```
@@ -88,7 +88,7 @@ If a line is too long, the comment may be placed on the next line:
# label(:post, :title, "A short title")
# # => <label for="post_title">A short title</label>
#
-# label(:post, :title, "A short title", :class => "title_label")
+# label(:post, :title, "A short title", class: "title_label")
# # => <label for="post_title" class="title_label">A short title</label>
```