RESTFUL challenge

Kickstartr

Welcome to Kickstartr. Assume we have a model called Project that inherits from ActiveRecord::Base, a corresponding table called projects, and a controller called ProjectsController that inherits from ApplicationController

For each of the actions below, write out the corresponding:

  • The HTTP Verb and URL (ie 'GET '/dogs'')
  • The rails controller action (ie 'dogs#index')
  • The corresponding CRUD action (ie 'READ)
  • The corresponding ActiveRecord method (ie 'all')

Actions

  1. Displays all of the projects
  2. Displays information about one project
  3. Creates a new project based on given parameters
  4. Updates an existing project with given parameters
  5. Deletes an existing project

BONUS

Build out the above as a full Rails API with a migration, model, routes, controller.