Skip to content

Instantly share code, notes, and snippets.

@ashleygwilliams
Last active December 19, 2015 11:39
Show Gist options
  • Save ashleygwilliams/5948848 to your computer and use it in GitHub Desktop.
Save ashleygwilliams/5948848 to your computer and use it in GitHub Desktop.
rails to do list assignment

Rails To-Do List

Objectives:

  • Create a Rails Application
  • Create Models that work with Active Record
  • Use Associations to relate Models
  • Use Forms to update the attributes of Objects

Product Spec

Create an application that allows one to create, edit, and delete to-do Lists. Each list should have a name, and the ability to contain an unlimited number of checkbox items that consist of editable text. The list should keep track of all of its items and 'remember' which items are completed and which are not. The list should 'know' when ever item in the list is completed.

Each item should be creatable, editable, and deletable. Whenever something is deleted there should be a confirmation page.

Models

  • List
  • Item

Controllers

You should have 2 controllers:

  • List Controller
  • Item Controller

The list controller will control your views, but you will need an item controller to add, delete, and edit items.

Views:

  • List of all Lists with preview of first 3 items list_index
  • Individual List with all Items list_index
  • New/Edit Item Page
  • New/Edit List Page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment