%= form_with model: @article do |form| %>
<%= form.label :title %>
<%= form.text_field :title %>
<% @article.errors.full_messages_for(:title).each do |message| %>
<%= message %>
<% end %>
<%= form.label :body %>
<%= form.text_area :body %>
<% @article.errors.full_messages_for(:body).each do |message| %>
<%= message %>
<% end %>
<%= form.label :status %>
<%= form.select :status, Visible::VALID_STATUSES, selected: article.status || 'public' %>
<%= form.submit %>
<% end %>