Sha256: c6f1a292ef4fbb7b97e03b90030fcc9f078aceb913cb004c284d736691160075

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 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

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_controller-0.0.12 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.11 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.10 spec/dummy/app/views/streets/_form.html.erb
dynamic_controller-0.0.9 spec/dummy/app/views/streets/_form.html.erb