diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-19 23:37:22 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-19 23:37:22 +0530 |
commit | eaad8610eea6efdd19124e965e43599811e665eb (patch) | |
tree | bc751a33518e7366fd4b568feda837b5e1129758 /railties/guides/source | |
parent | cc3d6a85715e23393ac2e89e4ed19bb10f5ee1fe (diff) | |
download | rails-eaad8610eea6efdd19124e965e43599811e665eb.tar.gz rails-eaad8610eea6efdd19124e965e43599811e665eb.tar.bz2 rails-eaad8610eea6efdd19124e965e43599811e665eb.zip |
minor example fix for Rails 3
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/api_documentation_guidelines.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/api_documentation_guidelines.textile b/railties/guides/source/api_documentation_guidelines.textile index e3ccd6396c..b977d9373e 100644 --- a/railties/guides/source/api_documentation_guidelines.textile +++ b/railties/guides/source/api_documentation_guidelines.textile @@ -46,10 +46,10 @@ Short docs do not need an explicit "Examples" label to introduce snippets, they # Converts a collection of elements into a formatted string by calling # <tt>to_s</tt> on all elements and joining them. # -# Blog.find(:all).to_formatted_s # => "First PostSecond PostThird Post" +# Blog.all.to_formatted_s # => "First PostSecond PostThird Post" </ruby> -On the other hand big chunks of structured documentation may have a separate "Examples" section: +On the other hand, big chunks of structured documentation may have a separate "Examples" section: <ruby> # ==== Examples |