<%= form_with(model: entry) do |form| %> <% if entry.errors.any? %>

<%= pluralize(entry.errors.count, "error") %> prohibited this entry from being saved:

<% end %>
<%= form.label :meal_type, style: "display: block" %> <%= form.text_field :meal_type %>
<%= form.label :calories, style: "display: block" %> <%= form.number_field :calories %>
<%= form.label :proteins, style: "display: block" %> <%= form.number_field :proteins %>
<%= form.label :carbohydrates, style: "display: block" %> <%= form.number_field :carbohydrates %>
<%= form.label :fats, style: "display: block" %> <%= form.number_field :fats %>
<%= form.submit %>
<% end %>