Skip to content
Browse files

ActiveRecord -> Active Record

  • Loading branch information...
1 parent 85b22f7 commit ddd1aa294a49fd42de3d11bf4a97a9c1b8a55311 @fcheung fcheung committed Dec 31, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/doc/guides/source/form_helpers.txt
View
2 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] } %>

0 comments on commit ddd1aa2

Please sign in to comment.
Something went wrong with that request. Please try again.