From 819a3edae405227f11283ad494a7f4ca9c771467 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 21 Aug 2021 19:30:19 -0400 Subject: init --- app/views/machines/_form.html.erb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/views/machines/_form.html.erb (limited to 'app/views/machines/_form.html.erb') diff --git a/app/views/machines/_form.html.erb b/app/views/machines/_form.html.erb new file mode 100644 index 0000000..6d7aff3 --- /dev/null +++ b/app/views/machines/_form.html.erb @@ -0,0 +1,21 @@ +<%= form_with model: @machine do |form| %> +
+ <%= form.label :name %>
+ <%= form.text_field :name %> + <% @machine.errors.full_messages_for(:name).each do |message| %> +
<%= message %>
+ <% end %> +
+ +
+ <%= form.label :edition %>
+ <%= form.text_field :edition %> + <% @machine.errors.full_messages_for(:edition).each do |message| %> +
<%= message %>
+ <% end %> +
+ +
+ <%= form.submit %> +
+<% end %> -- cgit 1.4.1