Sha256: da5ec33dfbd25f97368c96c829fb998f5a894fea236ec7cfe5214eb8dfc8b79d

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

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

4 entries across 4 versions & 1 rubygems

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