diff options
Diffstat (limited to 'guides/code/getting_started/app/views/comments/_form.html.erb')
-rw-r--r-- | guides/code/getting_started/app/views/comments/_form.html.erb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/guides/code/getting_started/app/views/comments/_form.html.erb b/guides/code/getting_started/app/views/comments/_form.html.erb new file mode 100644 index 0000000000..00cb3a08f0 --- /dev/null +++ b/guides/code/getting_started/app/views/comments/_form.html.erb @@ -0,0 +1,13 @@ +<%= form_for([@post, @post.comments.build]) do |f| %> + <p> + <%= f.label :commenter %><br /> + <%= f.text_field :commenter %> + </p> + <p> + <%= f.label :body %><br /> + <%= f.text_area :body %> + </p> + <p> + <%= f.submit %> + </p> +<% end %> |