diff options
author | eparreno <emili@eparreno.com> | 2010-05-28 16:46:12 +0200 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-06-03 23:32:11 +1000 |
commit | 62fd6d8c59b03d91c35ed0e9cf40a3f81de89dcc (patch) | |
tree | 0c866cf7a15ec823b061c5732cc62d1f89e82f4b /railties/guides/source/getting_started.textile | |
parent | f1fa3a35585913b936b43164d77826380fec20bf (diff) | |
download | rails-62fd6d8c59b03d91c35ed0e9cf40a3f81de89dcc.tar.gz rails-62fd6d8c59b03d91c35ed0e9cf40a3f81de89dcc.tar.bz2 rails-62fd6d8c59b03d91c35ed0e9cf40a3f81de89dcc.zip |
add <%= to fields_for examples
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index fe623e969f..46e709d0f5 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -1342,7 +1342,7 @@ We also add a <tt>@post.tags.build</tt> at the top of this form, this is to make Now create the folder <tt>app/views/tags</tt> and make a file in there called <tt>_form.html.erb</tt> which contains the form for the tag: <erb> -<% form.fields_for :tags do |tag_form| %> +<%= form.fields_for :tags do |tag_form| %> <div class="field"> <%= tag_form.label :name, 'Tag:' %> <%= tag_form.text_field :name %> |