fix styling of error messages

This commit is contained in:
Reinier Balt 2012-12-16 15:20:43 +01:00
parent ed3cbf991c
commit 5454ba385f
4 changed files with 7 additions and 11 deletions

View file

@ -7,13 +7,7 @@
<input type="hidden" id="new_todo_starred" name="new_todo_starred" value="false" />
<div id="error_status">
<% if todo.errors.any? -%>
<ul>
<% todo.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
<% end -%>
<%= get_list_of_error_messages_for(todo) %>
</div>
<label for="todo_description" style="float:left"><%= Todo.human_attribute_name('description') %></label>