# Rails Hello World Lab

In this lab you will integrate a static route so that the application will render a "Hello World" page.

## Objectives

1. Draw a route
2. Map a route to a controller/action
3. Render (implicitly or explicitly) a static template
4. Create a static template

## Instructions

Below are the tasks that you will need to complete in order to finish the lab:

* Integrate a route for `localhost:3000/hello_world`.
* Create a static controller that inherits from the application controller and contains the `hello_world` action. You can have the call to the view file occur using either the implicit or explicit processes.
* Create a file in the `views` directory that will be called by the static controller's `hello_world` action, and add the heading `<h1>Hello World</h1>` to the file. The test is case sensitive, so make sure you enter it *exactly* as shown.

The RSpec/Capybara test suite is currently not passing. Run the tests to see what you need to fix. It might be helpful to fire up the Rails server (via the `rails s` command) in order to manually test the functionality of your route, action, and view. For students in the IDE, here's a [Help Center article](http://help.learn.co/the-learn-ide/common-ide-questions/accessing-localhost-in-the-learn-ide) if you run into trouble with `rails s`.

[![Demo Screenshot](https://camo.githubusercontent.com/3c68adb53555834aaa4735289a300adbf7a2b2d8/68747470733a2f2f637572726963756c756d2d636f6e74656e742e73332e616d617a6f6e6177732e636f6d2f7765622d646576656c6f706d656e742f7261696c732d68656c6c6f2d776f726c642f7261696c735f68656c6c6f5f776f726c645f73732e706e67)](https://camo.githubusercontent.com/3c68adb53555834aaa4735289a300adbf7a2b2d8/68747470733a2f2f637572726963756c756d2d636f6e74656e742e73332e616d617a6f6e6177732e636f6d2f7765622d646576656c6f706d656e742f7261696c732d68656c6c6f2d776f726c642f7261696c735f68656c6c6f5f776f726c645f73732e706e67)

***Note***: From this point forward, labs will not always be provided as a blank slate, with the responsibility for creating migrations, models, controllers, etc. falling on you. Instead, many labs will contain broken or incomplete code, and you will be required to add to or fix the existing code in order for the specs to pass. In some cases, code that you wrote in a previous lab will be provided. This way, you can focus on applying new concepts instead of getting bogged down in repetitive work, such as setting up a basic Rails app for every new lab. In other cases, you will be gaining the practical experience of learning how to work within an existing code base, which is what you will likely experience at your first job. Rare is the junior developer who gets to create from whole cloth: it’s far more likely that you’ll be onboarded to a project with unfamiliar code created by other developers. Always use the specs to guide you through what additions and/or modifications are needed, and remember: you do **not** have to run the specs in the order provided in the lab. Work on your troubleshooting chops!

Clone : <https://github.com/learn-co-curriculum/rails-hello-world-lab>
