SHARE
TWEET

Untitled

a guest Sep 21st, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%= form_with(model: @task, local: true) do |form| %>
  2.   <% if task.errors.any? %>
  3.     <div id="error_explanation">
  4.       <h2><%= pluralize(task.errors.count, "error") %> prohibited this task from being saved:</h2>
  5.  
  6.       <ul>
  7.       <% task.errors.full_messages.each do |message| %>
  8.         <li><%= massage %></li>
  9.       <% end %>
  10.       </ul>
  11.     </div>
  12.   <% end %>
  13.  
  14.   <div class="field">
  15.     <%= form.label :title %>
  16.     <%= form.text_field :title %>
  17.   </div>
  18.  
  19.   <div class="field">
  20.     <%= form.label :description %>
  21.     <%= form.text_field :description %>
  22.   </div>
  23.  
  24.   <div class="field">
  25.     <%= form.label :start_date %>
  26.     <%= form.datetime_select :start_date %>
  27.   </div>
  28.  
  29.   <div class="field">
  30.     <%= form.label :end_date %>
  31.     <%= form.datetime_select :end_date %>
  32.   </div>
  33.  
  34.   <div class="field">
  35.     <%= form.label :event %>
  36.     <%= form.text_field :event %>
  37.   </div>
  38.  
  39.   <div class="field">
  40.     <%= form.label :members %>
  41.     <%= form.text_field :members %>
  42.   </div>
  43.  
  44.   <div class="actions">
  45.     <%= form.submit %>
  46.   </div>
  47. <% end %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top