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')
- Displays all of the projects
- Displays information about one project
- Creates a new project based on given parameters
- Updates an existing project with given parameters
- Deletes an existing project
Build out the above as a full Rails API with a migration, model, routes, controller.