Sha256: fd9f1e18d64d531fa51b53aecd16ff5663ae5468ee4a10d16cc4227838cc029c

Contents?: true

Size: 630 Bytes

Versions: 7

Compression:

Stored size: 630 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :city %><br />
    <%= @city.name %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynamic_controller-0.0.8 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.7 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.6 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.5 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.4 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.3 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.2 spec/dummy/app/views/streets/_form.html.erb