X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fproducts%2Fnew.html.erb;fp=app%2Fviews%2Fproducts%2Fnew.html.erb;h=f93593799e4963301c96ddaf4aa8f6e73d1956fa;hb=e580d4626176c8deb6f44fec7e66f980b5923b29;hp=0000000000000000000000000000000000000000;hpb=28668145b30d983f624bebb24e9ac9c23d9b13cd;p=depot.git diff --git a/app/views/products/new.html.erb b/app/views/products/new.html.erb new file mode 100644 index 0000000..f935937 --- /dev/null +++ b/app/views/products/new.html.erb @@ -0,0 +1,23 @@ +

New product

+ +<% form_for(@product) do |f| %> + <%= f.error_messages %> + +

+ <%= f.label :title %>
+ <%= f.text_field :title %> +

+

+ <%= f.label :description %>
+ <%= f.text_area :description %> +

+

+ <%= f.label :image_url %>
+ <%= f.text_field :image_url %> +

+

+ <%= f.submit "Create" %> +

+<% end %> + +<%= link_to 'Back', products_path %>