Sha256: 75b0ed0156d4769c59211e6ffd2d649e96319e7e300d39d94c5cad55baa78b58

Contents?: true

Size: 463 Bytes

Versions: 5

Compression:

Stored size: 463 Bytes

Contents

<% if object.errors.any? %>
	<div id="error_explanation">
		<div id="alerts" class="alert alert-error">
			<%= t( :errors, :count => object.errors.count, :model => @model.display_name) %>:
			<ul>
			<% object.errors.messages.keys.each do |field| %>
				<% object.errors.messages[field].each do |value| %>
				 <li>
				  	<%= @model.get_attribute_label(field.to_s) %>
				  	<%= value %>
				 </li>
				<% end %>
			<% end %>
			</ul>
		</div>
	</div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminpanel-2.1.2 app/views/shared/_error_messages.html.erb
adminpanel-2.1.1 app/views/shared/_error_messages.html.erb
adminpanel-2.1.0 app/views/shared/_error_messages.html.erb
adminpanel-2.0.1 app/views/shared/_error_messages.html.erb
adminpanel-2.0.0 app/views/shared/_error_messages.html.erb