- Fork to your own account.
- Clone to your computer.
- In the GitHub Desktop app, create a branch for your work.
- Open the entire folder you downloaded in Atom.
- 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.) - In the GitHub Desktop app, create a commit. You must type a "summary"; "description" is optional.
- Click Publish. Verify that your branch is now visible on your fork at GitHub.com in the "Branch" dropdown.
- Commit and Sync often as you work.
- 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.
- This project does NOT have
rails grade
functionality. - 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.
cd
into the folder you downloaded.bundle install
(orbundle
for short)
- 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.
- There is an accompanying video for this project.
- 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
- Now to create the table issue the following command at your terminal prompt:
rails db:migrate
- You now have a model (a database table) named Round.
- Follow the accompanying video and our CRUD With Ruby Guide to complete the project.