Sha256: e4045b365bccd7912fc0780c103e8d9edb21d87a92c6b8ffdf63153b5055311c

Contents?: true

Size: 462 Bytes

Versions: 8

Compression:

Stored size: 462 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_name(field.to_s) %>
				  	<%= value %>
				 </li>
				<% end %>
			<% end %>
			</ul>
		</div>
	</div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adminpanel-1.2.12 app/views/shared/_error_messages.html.erb
adminpanel-1.2.11 app/views/shared/_error_messages.html.erb
adminpanel-1.2.10 app/views/shared/_error_messages.html.erb
adminpanel-1.2.9 app/views/shared/_error_messages.html.erb
adminpanel-1.2.8 app/views/shared/_error_messages.html.erb
adminpanel-1.2.7 app/views/shared/_error_messages.html.erb
adminpanel-1.2.6 app/views/shared/_error_messages.html.erb
adminpanel-1.2.5 app/views/shared/_error_messages.html.erb