ToDo MVC 2 - Lists Have Items

Objectives

  1. Giving Lists many items.
  2. Showing items of a list.
  3. Building a Nested Resource Form for Creating Items in a List
  4. Creating an Item associated with a list.
  5. Adding validations.
  6. Looking at ActiveModel::Errors
  7. Rendering an invalid instance from a controller action.
  8. Showing custom errors behavior.

Video

<iframe width="100%" height="720" src="https://www.youtube.com/embed/OsinhhQLmRk?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>

MP4

This video is meant to be a review of the second set of topics in Ruby on Rails.

There will be more videos building out the rest of TODOMVC.

Code:

View TodoMVC 2: Lists have Items on Learn.co and start learning to code for free.