spec/dummy/app/views/cities/_form.html.erb in dynamic_controller-0.0.8 vs spec/dummy/app/views/cities/_form.html.erb in dynamic_controller-0.0.9

- old
+ new

@@ -1,25 +1,25 @@ -<%= 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 %> +<%= 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 %>