{"id":14955621,"url":"https://github.com/turingschool/rails_exercises","last_synced_at":"2025-09-06T04:44:07.402Z","repository":{"id":40213999,"uuid":"205435632","full_name":"turingschool/rails_exercises","owner":"turingschool","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-18T22:58:42.000Z","size":71,"stargazers_count":8,"open_issues_count":10,"forks_count":26,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-09-01T19:52:49.622Z","etag":null,"topics":["be-2","practice-project","rails","rails5"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turingschool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-30T18:20:55.000Z","updated_at":"2024-05-24T01:48:02.000Z","dependencies_parsed_at":"2024-09-24T13:24:01.583Z","dependency_job_id":null,"html_url":"https://github.com/turingschool/rails_exercises","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"d66fb7ba80ec4f2be680a3372911a4afe2e1d23c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/turingschool/rails_exercises","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turingschool%2Frails_exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turingschool%2Frails_exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turingschool%2Frails_exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turingschool%2Frails_exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turingschool","download_url":"https://codeload.github.com/turingschool/rails_exercises/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turingschool%2Frails_exercises/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273858864,"owners_count":25180771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["be-2","practice-project","rails","rails5"],"created_at":"2024-09-24T13:11:27.624Z","updated_at":"2025-09-06T04:44:07.376Z","avatar_url":"https://github.com/turingschool.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails Exercises\n\nThis collection of exercises is for Turing students to practice Ruby on Rails concepts in isolation.\n\n## Setup\n\n1. Clone this repository\n1. Run `bundle` from the command line\n\n### Exercises Setup\n\nCurrently, these exercises are included in this repo:\n\n* controllers\n* models\n* routes\n\nEach group of exercises is located on a branch. In order to access these exercises, checkout out the branch (`git checkout controllers`). Note, if you list your branches using `git branch`, you will not see the branches listed at first. That's to be expected! You will still be able to check them out. Once you check out a branch, it will appear in your list of branches.\n\nWhen switching between exercises on different branches, you may need to commit or stash your changes in order to checkout a new exercise branch. Don't be afraid to commit! Your changes will only be saved locally and will not affect the exercises for other students.\n\nSome exercises contain database migrations, so apply them with:\n\n```\nrails db:create\nrails db:migrate\n```\n\nIf you get a message saying the database already exists when running `rails db:create`, first drop the database with `rails db:drop`.\n\n## Completing the Exercises\n\nEach group of exercises has tests under `spec/features` and/or `spec/models`. Each test file begins with a number (ex: `1dog_spec.rb`). This number indicates the order in which you should complete the tests.\n\nRun the tests individually with `rspec spec/models/1dog_spec.rb` for example. You can also skip tests by changing `it` blocks to `xit` which will be helpful for narrowing your focus. Additionally, you can run a specific test with `rspec spec/models/1dog_spec.rb:xyz` where `xyz` refers to the line number in the test file where the `it` is located.\n\n## Contributing\n\nIf you find any bugs or have suggestions, we'd love to hear them! You can email `brian@turing.io` or slack `@Brian Zanti` in the Turing Slack Workspace.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturingschool%2Frails_exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturingschool%2Frails_exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturingschool%2Frails_exercises/lists"}