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/action_view_overview.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/action_view_overview.textile')
-rw-r--r-- | railties/guides/source/action_view_overview.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/action_view_overview.textile b/railties/guides/source/action_view_overview.textile index 43ebe87875..8b5eda0973 100644 --- a/railties/guides/source/action_view_overview.textile +++ b/railties/guides/source/action_view_overview.textile @@ -699,7 +699,7 @@ Creates a scope around a specific model object like form_for, but doesnât crea First name: <%= person_form.text_field :first_name %> Last name : <%= person_form.text_field :last_name %> - <% fields_for @person.permission do |permission_fields| %> + <%= fields_for @person.permission do |permission_fields| %> Admin? : <%= permission_fields.check_box :admin %> <% end %> <% end %> |