used TDD to create resources to view in index

You might want to use a different flash category for warnings and errors:

```ruby
flash[:alert] = "Fail"
render "new"
```

It behaves similarly to `flash[:notice]` but you can style the `<div>` elements differently (e.g. a notice might show up in blue or green whereas an alert might show up in red).