%= form_with(model: currency, local: true) do |form| %>
<% if currency.errors.any? %>
<%= pluralize(currency.errors.count, "error") %> prohibited this currency from being saved:
<% currency.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.label :name %>
<%= form.text_field :name %>
<%= form.label :symbol %>
<%= form.text_field :symbol %>
<%= form.label :rate %>
<%= form.text_field :rate %>
<%= form.label :active %>
<%= form.check_box :active %>
<%= form.submit %>
<% end %>