Sha256: c9515ef60c29fe74ce6b07cf819efaaa2548eec0bb8ae803e7577bff0e9cbab9

Contents?: true

Size: 471 Bytes

Versions: 5

Compression:

Stored size: 471 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminpanel-1.2.4 app/views/shared/_error_messages.html.erb
adminpanel-1.2.3 app/views/shared/_error_messages.html.erb
adminpanel-1.2.2 app/views/shared/_error_messages.html.erb
adminpanel-1.2.1 app/views/shared/_error_messages.html.erb
adminpanel-1.2.0 app/views/shared/_error_messages.html.erb