From d7154d483269fc25d771d5b8b7b8a2c889e4b3f5 Mon Sep 17 00:00:00 2001 From: James Gifford Date: Mon, 12 Sep 2011 10:30:45 -0400 Subject: Added getting_started code, updated guide with link to rails github repo and path to code --- .../code/getting_started/app/views/tags/_form.html.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 railties/guides/code/getting_started/app/views/tags/_form.html.erb (limited to 'railties/guides/code/getting_started/app/views/tags/_form.html.erb') diff --git a/railties/guides/code/getting_started/app/views/tags/_form.html.erb b/railties/guides/code/getting_started/app/views/tags/_form.html.erb new file mode 100644 index 0000000000..7e424b0e20 --- /dev/null +++ b/railties/guides/code/getting_started/app/views/tags/_form.html.erb @@ -0,0 +1,12 @@ +<%= form.fields_for :tags do |tag_form| %> +
+ <%= tag_form.label :name, 'Tag:' %> + <%= tag_form.text_field :name %> +
+ <% unless tag_form.object.nil? || tag_form.object.new_record? %> +
+ <%= tag_form.label :_destroy, 'Remove:' %> + <%= tag_form.check_box :_destroy %> +
+ <% end %> +<% end %> -- cgit v1.2.3