aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/README.rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/README.rdoc')
-rw-r--r--actionpack/README.rdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/README.rdoc b/actionpack/README.rdoc
index 5db4cff66b..5919b5c6d4 100644
--- a/actionpack/README.rdoc
+++ b/actionpack/README.rdoc
@@ -33,7 +33,7 @@ A short rundown of some of the major features:
* Actions grouped in controller as methods instead of separate command objects
and can therefore share helper methods
- CustomersController < ActionController::Base
+ class CustomersController < ActionController::Base
def show
@customer = find_customer
end
@@ -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 %>