%= form_with(model: publickey, local: true) do |form| %>
<% if publickey.errors.any? %>
<%= pluralize(publickey.errors.count, "error") %> prohibited this publickey from being saved:
<% publickey.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.label :name %>
<%= form.text_field :name, id: :publickey_name %>
<%= form.label :data %>
<%= form.text_area :data, id: :publickey_data %>
<%= form.label :user_id %>
<%= form.text_field :user_id, id: :publickey_user_id %>
<%= form.submit %>
<% end %>