Sha256: 674daff5e9c9bace4ab6a80fb902239fa384ddfc58c4615e068b59a1c93a6510

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

<%= form_with(model: level, local: true) do |form| %>
  <% if level.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(level.errors.count, "error") %> prohibited this level from being saved:</h2>

      <ul>
      <% level.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
go_gamification-0.0.20 app/views/gamification/levels/_form.html.erb
go_gamification-0.0.19 app/views/gamification/levels/_form.html.erb
go_gamification-0.0.18 app/views/gamification/levels/_form.html.erb
go_gamification-0.0.17 app/views/gamification/levels/_form.html.erb
go_gamification-0.0.16 app/views/gamification/levels/_form.html.erb
go_gamification-0.0.15 app/views/gamification/levels/_form.html.erb
go_gamification-0.0.14 app/views/gamification/levels/_form.html.erb
go_gamification-0.0.13 app/views/gamification/levels/_form.html.erb