Sha256: 0c867918724a049827c3fb992cab30782ab313504c5925b669c84342d77dd6fa

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

<% if @error_records.present? && @record_errors.is_a?(Array) -%>
  <%= render :partial => 'messages' unless request.xhr? %>

  <% @error_records.each do |record| %>
    <%= active_scaffold_error_messages_for record, :object_name => "#{record.class.model_name.human.downcase}#{record.new_record? ? '' : ": #{record.to_label}"}" %>
  <% end %>
<% else %>
  <%= render :super %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_scaffold_batch-3.3.0 app/views/active_scaffold_overrides/_form_messages.html.erb
active_scaffold_batch-3.2.2 app/views/active_scaffold_overrides/_form_messages.html.erb
active_scaffold_batch-3.2.1 app/views/active_scaffold_overrides/_form_messages.html.erb
active_scaffold_batch-3.2.0 app/views/active_scaffold_overrides/_form_messages.html.erb