aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/source
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2008-12-31 18:09:40 +0000
committerFrederick Cheung <frederick.cheung@gmail.com>2008-12-31 18:09:40 +0000
commitddd1aa294a49fd42de3d11bf4a97a9c1b8a55311 (patch)
treece1a3e66e4ee577f39c9dbbebb0d418ceac017e8 /railties/doc/guides/source
parent85b22f79abaa8e8aeb2cb21b1703cb5c4d9e401b (diff)
downloadrails-ddd1aa294a49fd42de3d11bf4a97a9c1b8a55311.tar.gz
rails-ddd1aa294a49fd42de3d11bf4a97a9c1b8a55311.tar.bz2
rails-ddd1aa294a49fd42de3d11bf4a97a9c1b8a55311.zip
ActiveRecord -> Active Record
Diffstat (limited to 'railties/doc/guides/source')
-rw-r--r--railties/doc/guides/source/form_helpers.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/form_helpers.txt b/railties/doc/guides/source/form_helpers.txt
index 315b94b5e9..ea84534e52 100644
--- a/railties/doc/guides/source/form_helpers.txt
+++ b/railties/doc/guides/source/form_helpers.txt
@@ -412,7 +412,7 @@ Until now you were generating option tags from nested arrays with the help of `o
<%= options_for_select([['Lisabon', 1], ['Madrid', 2], ...]) %>
----------------------------------------------------------------------------
-But what if you had a *City* model (perhaps an ActiveRecord one) and you wanted to generate option tags from a collection of those objects? One solution would be to make a nested array by iterating over them:
+But what if you had a *City* model (perhaps an Active Record one) and you wanted to generate option tags from a collection of those objects? One solution would be to make a nested array by iterating over them:
----------------------------------------------------------------------------
<% cities_array = City.find(:all).map { |city| [city.name, city.id] } %>