{"id":17826405,"url":"https://github.com/justintanner/ra-102","last_synced_at":"2026-04-30T01:35:00.166Z","repository":{"id":258893236,"uuid":"875537684","full_name":"justintanner/ra-102","owner":"justintanner","description":"Lesson 102 - Rails Hello World","archived":false,"fork":false,"pushed_at":"2024-10-29T03:28:46.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T12:16:30.127Z","etag":null,"topics":["ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://www.skool.com/rails-academy/classroom/cc5acd97?md=ed509993bfa1470f80735d7ec2a93e4f","language":null,"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/justintanner.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T08:49:25.000Z","updated_at":"2024-10-31T11:09:07.000Z","dependencies_parsed_at":"2024-10-27T19:19:29.270Z","dependency_job_id":"e6a26a74-610b-45d6-80a3-929f1bcbddb0","html_url":"https://github.com/justintanner/ra-102","commit_stats":null,"previous_names":["justintanner/ra-102"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/justintanner/ra-102","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justintanner%2Fra-102","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justintanner%2Fra-102/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justintanner%2Fra-102/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justintanner%2Fra-102/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justintanner","download_url":"https://codeload.github.com/justintanner/ra-102/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justintanner%2Fra-102/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32451416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ruby","ruby-on-rails"],"created_at":"2024-10-27T18:47:31.769Z","updated_at":"2026-04-30T01:35:00.151Z","avatar_url":"https://github.com/justintanner.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Rails Academy: Lesson 102 - Rails Hello World\n\nAt the end of this lesson you with have a created your first rails project.\n\n### Topics\n\n- Rails New\n- Rails Controllers\n- Rails Views\n\n### Prerequisites\n\n[Lesson 101](https://github.com/justintanner/ra-101)\n\n### 1. Get into the lesson repository\n\nFirst, let's make sure we are in the correct directory:\n\n```bash\ncd ~/lessons/ra-102\n```\n\n### 2. Branch and checkout\n\nNext, we'll create a personal branch to work out of named after your Github username:\n\n```bash\ngit checkout -b YOUR_GITHUB_USERNAME\n```\n\nA quick way to get your Github username is to run:\n\n```bash\ngh api user --jq '.login'\n```\n\nAfter that you should see a terminal like:\n\n```bash\n~/lessons/ra-102 (branch: github_username)\n$ _\n```\n\n### 3. Create a new rails project\n\nStill in the `ra-102` directory, run the following command to create a new Rails project:\n\n```bash\nrails new . --skip-git\n```\n\nThis will create a new Rails project in the current directory, skipping git because the lesson already has a git repository.\n\nNow lets our ruby gems by running:\n\n```bash\nbundle install\n```\n\n### 4. Launch a local server\n\n```bash\nrails server\n```\n\nVisit [http://localhost:3000](http://localhost:3000) in your browser to see your new app running with the default Rails welcome page.\n\n### 5. Save your changes to git\n\n```bash\ngit add .\ngit commit -m \"Installed Rails\"\n```\n\n### 6. Create a home controller\n\n```bash\nrails generate controller home index\n```\nThis will create a new controller called `home` with an action called `index`.\n\n### 7. Update the routes\n\nOpen the `config/routes.rb` file and add the following line\n    \n```ruby\nroot 'home#index'\n```\n\nThis will set the `home#index` action as the root of the application.\n\n### 8. Update the view\n\nOpen the `app/views/home/index.html.erb` file and add the following line:\n\n```html\n\u003ch1\u003eHello World\u003c/h1\u003e\n```\n\n### 9. Double check your work\n\nStart the local server by running:\n\n```bash\nrails server\n```\n\nIf you see \"Hello World\" on [http://localhost:3000](http://localhost:3000) it's working.\n\n### 10. Save your changes to git\n\n```bash\ngit add .\ngit commit -m \"Added home controller\"\n```\n\n### 11. Create a Pull Request\n\n```bash\ngh pr create\n```\n\n* Visit your PR on Github.\n\nThe automatic check will run if your code passes, you'll see:\n\n:white_check_mark: All checks have passed\n\n### :tada: You're Done! :tada:\n\n#### Next Lesson\n\nGet your free server in the [next lesson](https://github.com/justintanner/ra-103).\n\n#### Additional Resources\n\n- :book: [Action View](https://guides.rubyonrails.org/action_view_overview.html)\n- :book: [Routing](https://guides.rubyonrails.org/routing.html)\n- :tv: [Ruby on Rails](https://rubyonrails.org/)\n- :tv: [Ruby on Rails in 100 Seconds](https://www.youtube.com/watch?v=2DvrRadXwWY)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustintanner%2Fra-102","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustintanner%2Fra-102","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustintanner%2Fra-102/lists"}