Created tables, product scaffold
[depot.git] / app / views / products / new.html.erb
diff --git a/app/views/products/new.html.erb b/app/views/products/new.html.erb
new file mode 100644 (file)
index 0000000..f935937
--- /dev/null
@@ -0,0 +1,23 @@
+<h1>New product</h1>
+
+<% form_for(@product) do |f| %>
+  <%= f.error_messages %>
+
+  <p>
+    <%= f.label :title %><br />
+    <%= f.text_field :title %>
+  </p>
+  <p>
+    <%= f.label :description %><br />
+    <%= f.text_area :description %>
+  </p>
+  <p>
+    <%= f.label :image_url %><br />
+    <%= f.text_field :image_url %>
+  </p>
+  <p>
+    <%= f.submit "Create" %>
+  </p>
+<% end %>
+
+<%= link_to 'Back', products_path %>