Guest User

Untitled

a guest
Jul 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <%= form_for(@result, :html => {:multipart => true}) do |f| %>
  2. <% if @result.errors.any? %>
  3. <div id="error_explanation">
  4. <h2><%= pluralize(@result.errors.count, "error") %> prohibited this result from being saved:</h2>
  5.  
  6. <ul>
  7. <% @result.errors.full_messages.each do |msg| %>
  8. <li><%= msg %></li>
  9. <% end %>
  10. </ul>
  11. </div>
  12. <% end %>
  13.  
  14. Uploaded Result
  15. <%= f.file_field :result %>
  16. Event Title
  17. <%= f.text_field :title %>
  18. <div class="actions">
  19. <%= f.submit %>
  20. </div>
  21. <% end %>
Add Comment
Please, Sign In to add comment