×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Ruby
Posted by: Bartosz Walecki
Added: Jan 9, 2018 11:06 AM
Views: 2
Tags: no tags
  1. <%= form_with(model: wizard_step4, local: true) do |form| %>
  2.   <% if wizard_step4.errors.any? %>
  3.     <div id="error_explanation">
  4.       <h2><%= pluralize(wizard_step4.errors.count, "error") %> prohibited this wizard_step4 from being saved:</h2>
  5.  
  6.       <ul>
  7.       <% wizard_step4.errors.full_messages.each do |message| %>
  8.         <li><%= message %></li>
  9.       <% end %>
  10.       </ul>
  11.     </div>
  12.   <% end %>
  13.  
  14.   <div class="actions">
  15.     <%= form.submit %>
  16.   </div>
  17. <% end %>