aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-19 04:48:06 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-19 04:48:06 -0700
commitb5fec0f2a02727cd532c2d5db4ce9afa75d86bbe (patch)
tree4b0f366a146a8360b541033dfb6651183ee21cd3
parenta921cab621cb6932f6e88979f7c6650d3c5952b2 (diff)
parent8630cd420cf2a6f60151d88c677e8526acdeec57 (diff)
downloadrails-b5fec0f2a02727cd532c2d5db4ce9afa75d86bbe.tar.gz
rails-b5fec0f2a02727cd532c2d5db4ce9afa75d86bbe.tar.bz2
rails-b5fec0f2a02727cd532c2d5db4ce9afa75d86bbe.zip
Merge pull request #1135 from arunagw/for_to_each
README updated for for => each
-rw-r--r--actionpack/README.rdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/README.rdoc b/actionpack/README.rdoc
index 2f3678881d..5919b5c6d4 100644
--- a/actionpack/README.rdoc
+++ b/actionpack/README.rdoc
@@ -58,7 +58,7 @@ A short rundown of some of the major features:
* ERB templates (static content mixed with dynamic output from ruby)
- <% for post in @posts %>
+ <% @posts.each do |post| %>
Title: <%= post.title %>
<% end %>
@@ -81,7 +81,7 @@ A short rundown of some of the major features:
xml.language "en-us"
xml.ttl "40"
- for item in @recent_items
+ @recent_items.each do |item|
xml.item do
xml.title(item_title(item))
xml.description(item_description(item))
@@ -293,7 +293,7 @@ And the templates look like this:
</body></html>
weblog/index.html.erb:
- <% for post in @posts %>
+ <% @posts.each do |post| %>
<p><%= link_to(post.title, :action => "show", :id => post.id) %></p>
<% end %>