Coder Social home page Coder Social logo

msm_debug's Introduction

Resource Practice

This application has 4 database-backed web CRUD resources: directors, movies, roles, and actors.

As usual, each resource has 7 "golden" actions that allow users to interact with it:

CREATE

  • new_form
  • create_row

READ

  • index
  • show

UPDATE

  • edit_form
  • update_row

DELETE

  • destroy

There are bugs in most of the 28 actions required to CRUD our 4 resources. Your job is to debug them all until you can create, read, update, and delete each of directors, movies, roles, and actors without running into any issues.

Here is a fully functional version of the app, for your reference.

https://resource-practice.herokuapp.com/

Make yours work like it. Your local app is using a dark Bootswatch, and the reference app is using a light Bootswatch; don't get confused between the tabs as you try to check your work.

Use the detailed README of the Photogram Golden Seven project as a reference.

Setup

  1. First fork, and then clone.
  2. cd to the root folder of the app.
  3. bundle install
  4. rails db:migrate (To create the four tables on your machine; I have already written the instructions to do so.)
  5. rails db:seed (to pre-populate your tables with some data, so we can get straight to work. This step may take a while on Windows machines. You can open a new Command Line window to continue working while it runs.)
  6. rails server

Navigate to

http://localhost:3000

You should see a list of movies. The Movies#index action is functional, and I have set it to be the root URL.

From here, click through the app and debug. Try adding a new movie, updating a movie, looking at the details of a movie, and deleting a movie.

Sometimes you will get an error message; sometimes there won't be an error message, but the action just won't do its job. Use the server log to help figure out what's going on.

After Movies, work on Directors, then Actors, then Roles.

To submit, sync your work to your fork (often) and rails grade (often).

msm_debug's People

Contributors

raghubetina avatar bjblock avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.