Skip to content

appdevspring17/rps_crud

Repository files navigation

RPS CRUD

Standard Workflow

  1. Fork to your own account.
  2. Clone to your computer.
  3. In the GitHub Desktop app, create a branch for your work.
  4. Open the entire folder you downloaded in Atom.
  5. Make your first change to the code. (You could modify this README.md file by adding your username next to the project in the heading, for example.)
  6. In the GitHub Desktop app, create a commit. You must type a "summary"; "description" is optional.
  7. Click Publish. Verify that your branch is now visible on your fork at GitHub.com in the "Branch" dropdown.
  8. Commit and Sync often as you work.
  9. Make new branches freely to experiment. You can always switch back to an older branch and start over. When in doubt, create a branch, especially before starting on a new task.
  10. This project does NOT have rails grade functionality.
  11. If you have a question about your code, a great way to get feedback is to open a Pull Request. After creating it, if you include the URL of your Pull Request when you post your question, reviewers will be able to easily see the changes you've made and leave comments on each line of your code with suggestions.

Project Specific Setup

  1. cd into the folder you downloaded.
  2. bundle install (or bundle for short)

Project Details

  1. In this project we will extend the rps_rcav project by creating a database table (or what is referred to as a model in Rails) to save each round of play.
  2. There is an accompanying video for this project.
  3. First, we create a model with the generate command. Open up a terminal and cd into your rps_crud folder and issue the following command at your terminal prompt:
rails generate model round computer_move:string player_move:string outcome:string
  1. Now to create the table issue the following command at your terminal prompt:
rails db:migrate
  1. You now have a model (a database table) named Round.
  2. Follow the accompanying video and our CRUD With Ruby Guide to complete the project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published