aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/nested_model_forms.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-06-02 01:35:43 +0200
committerXavier Noria <fxn@hashref.com>2010-06-02 01:35:43 +0200
commitfdd203f964e31fd81a16be8f68462a64a17b0d92 (patch)
treee2b203278af8849d91e00ba2cebe18b8dae0bf15 /railties/guides/source/nested_model_forms.textile
parent315e8952dfbaecd4d5175ea4d0fd95611cad9e01 (diff)
parent158473f0d113f0c0b02ba9b7353c10949172a1f7 (diff)
downloadrails-fdd203f964e31fd81a16be8f68462a64a17b0d92.tar.gz
rails-fdd203f964e31fd81a16be8f68462a64a17b0d92.tar.bz2
rails-fdd203f964e31fd81a16be8f68462a64a17b0d92.zip
Merge remote branch 'docrails/master'
Diffstat (limited to 'railties/guides/source/nested_model_forms.textile')
-rw-r--r--railties/guides/source/nested_model_forms.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/nested_model_forms.textile b/railties/guides/source/nested_model_forms.textile
index 4a79902232..39b0c32f24 100644
--- a/railties/guides/source/nested_model_forms.textile
+++ b/railties/guides/source/nested_model_forms.textile
@@ -143,7 +143,7 @@ Now add a nested form for the +address+ association:
<%= form_for @person do |f| %>
<%= f.text_field :name %>
- <% f.fields_for :address do |af| %>
+ <%= f.fields_for :address do |af| %>
<%= f.text_field :street %>
<% end %>
<% end %>
@@ -184,7 +184,7 @@ The form code for an association collection is pretty similar to that of a singl
<%= form_for @person do |f| %>
<%= f.text_field :name %>
- <% f.fields_for :projects do |pf| %>
+ <%= f.fields_for :projects do |pf| %>
<%= f.text_field :name %>
<% end %>
<% end %>