diff options
author | eparreno <emili@eparreno.com> | 2010-05-28 16:46:12 +0200 |
---|---|---|
committer | eparreno <emili@eparreno.com> | 2010-05-28 16:46:12 +0200 |
commit | 6330e2af11ee9531b1b0bcad25e5b97541623b40 (patch) | |
tree | 4d9ed51c6f5df4db21e9e4b76a685ac3e3d83508 /railties/guides/source/nested_model_forms.textile | |
parent | ddec74fb3ab66528ca98ff37ca9b5f4227fdd2e3 (diff) | |
download | rails-6330e2af11ee9531b1b0bcad25e5b97541623b40.tar.gz rails-6330e2af11ee9531b1b0bcad25e5b97541623b40.tar.bz2 rails-6330e2af11ee9531b1b0bcad25e5b97541623b40.zip |
add <%= to fields_for examples
Diffstat (limited to 'railties/guides/source/nested_model_forms.textile')
-rw-r--r-- | railties/guides/source/nested_model_forms.textile | 4 |
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 %> |