Sha256: 8777f292f0809065708e4c4b8df9f9522ef41cba8d8fa07aa885174e35db14b2

Contents?: true

Size: 619 Bytes

Versions: 7

Compression:

Stored size: 619 Bytes

Contents

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

      <ul>
      <% @city.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 :country %><br />
    <%= @country.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/cities/_form.html.erb
dynamic_controller-0.0.7 spec/dummy/app/views/cities/_form.html.erb
dynamic_controller-0.0.6 spec/dummy/app/views/cities/_form.html.erb
dynamic_controller-0.0.5 spec/dummy/app/views/cities/_form.html.erb
dynamic_controller-0.0.4 spec/dummy/app/views/cities/_form.html.erb
dynamic_controller-0.0.3 spec/dummy/app/views/cities/_form.html.erb
dynamic_controller-0.0.2 spec/dummy/app/views/cities/_form.html.erb