Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Cleaning Up Our Code

Oliver Duncan
Oliver Duncan
16,640 Points

There's a red box around my form to edit todo items.

We're cleaning up the code, and made a partial to edit todo items. Problem is, my code is slightly different than the teacher's: I could have sworn we had an "if @todo_items.errors.any?" at the beginning of our new and edit views. When I include this if statement, there's simply a red box around the form. When I don't (matching the teacher's code) the page displays an ugly "0 errors prohibited this to_do_item from being saved" with a red box around it. What did I miss?

Cody Mumford
Cody Mumford
11,531 Points

Link your github repository. This sounds like something with the _flash.html.erb partial.

Oliver Duncan
Oliver Duncan
16,640 Points

The github repository is github.com/ollieshmollie/Odot