Sha256: 091d8c030fbfe3271cb51b93df9815cebcee80040edb42b145564bab2526d4d0

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 Bytes

Contents

<%= form_for(student) do |f| %>
  <% if student.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(student.errors.count, "error") %> prohibited this student from being saved:</h2>

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

  <div class="field">
    <%= f.label :name %>
    <%= f.text_field :name %>
  </div>

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
utfpr_gp_engine-0.6.0 app/views/utfpr_gp_engine/students/_form.html.erb
utfpr_gp_engine-0.5.0 app/views/utfpr_gp_engine/students/_form.html.erb
utfpr_gp_engine-0.4.0 app/views/utfpr_gp_engine/students/_form.html.erb
utfpr_gp_engine-0.3.0 app/views/utfpr_gp_engine/students/_form.html.erb
utfpr_gp_engine-0.2.0 app/views/utfpr_gp_engine/students/_form.html.erb