Sha256: 6356a2c734d52fd1c9f4755523c6b1b735cfcb6f216f1ce814d372625f3e6c7c

Contents?: true

Size: 605 Bytes

Versions: 11

Compression:

Stored size: 605 Bytes

Contents

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

      <ul>
      <% @booking.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :thing %><br>
    <%= f.text_field :thing %>
  </div>
  <div class="field">
    <%= f.label :referrer %><br>
    <%= f.text_field :referrer %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
acts_as_referred-0.2.0 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.7 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.6 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.5 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.4 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.3 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.2 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.1 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.1.0 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.0.2 test/dummy/app/views/bookings/_form.html.erb
acts_as_referred-0.0.1 test/dummy/app/views/bookings/_form.html.erb