Skip to content

Repository files navigation

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

Checks for Understanding

  1. Define CRUD.
  • A set of operations used to manage data in a database using the following:
    • Create: a new data or records to a database
    • Read: access or view existing data from database
    • Update: Modify existing data to the database
    • Destroy: delete all data from a database
  1. Define MVC.
  • MVC is a design pattern that separates an application into three main components:
    • Model: handles the data
    • View: what users see
    • Controller: connects model and view together
  1. What two files would you need to create/modify for a Rails application to respond to a GET request to /api/v1/tasks, assuming you have a Task model.
  • I belives the two files you would need are the routes.rb file to be able to use the GET request and then the other is the tasks_controller.rb so that it knows what data is being requested.
  1. What are params? Where do they come from?
  • Params are additional details that are sent to a server along with the URL. They come from the filepath that they need to follow in order to access the data that is being requested.
  1. What is the purpose of a serializer?
  • The purpose of serialization is to convert data into a series of bytes to save the state of an object that can be easily transmitted.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages