* Fix it so that all edit forms show an error banner if the form has validation errors. Previously forms had to manually call `error_messages_for`, which not all forms did. * Fix it so that the full validation error message is shown next to each input attribute that had errors. Also update the styling of these error messages to look better.
15 lines
394 B
Plaintext
15 lines
394 B
Plaintext
<div id="c-favorite-groups">
|
|
<div id="a-new">
|
|
<h1>New Favorite Group</h1>
|
|
|
|
<%= edit_form_for(@favorite_group) do |f| %>
|
|
<%= f.input :name, as: :string, required: true %>
|
|
<%= f.input :post_ids_string, label: "Posts", as: :text %>
|
|
<%= f.input :is_public, label: "Public" %>
|
|
<%= f.submit "Submit" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|