notebook/app/views/timelines/_form.html.erb
2020-06-10 15:04:51 -05:00

18 lines
457 B
Plaintext

<%= form_with(model: timeline, local: true) do |form| %>
<% if timeline.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(timeline.errors.count, "error") %> prohibited this timeline from being saved:</h2>
<ul>
<% timeline.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="actions">
<%= form.submit %>
</div>
<% end %>