From 8630cd420cf2a6f60151d88c677e8526acdeec57 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Thu, 19 May 2011 08:59:57 +0530 Subject: README updated for for => each --- actionpack/README.rdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack') 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: weblog/index.html.erb: - <% for post in @posts %> + <% @posts.each do |post| %>

<%= link_to(post.title, :action => "show", :id => post.id) %>

<% end %> -- cgit v1.2.3