> For the complete documentation index, see [llms.txt](https://certil-remy.gitbook.io/learn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://certil-remy.gitbook.io/learn/sinatra/untitled-10.md).

# Sinatra Basic Views Lab

## Objectives

1. Set a controller action to render a separate view
2. Render HTML in the view

## Instructions

[![](https://camo.githubusercontent.com/d74ddf458b24e99e7b9ff44c48299991a1882feb/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6c6561726e2d76657269666965642f626f776c696e672e676966)](https://camo.githubusercontent.com/d74ddf458b24e99e7b9ff44c48299991a1882feb/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6c6561726e2d76657269666965642f626f776c696e672e676966)

You've been hired to build an app for the local bowling alley. They want a page that displays their regular hours, dates of tournaments, bowling alley bar menus, and eventually, a way to reserve and pay for a lane online.

But for now, they'll settle for just the basics.

### Step 1:

In `app.rb`, you'll want to create a controller action that responds to a GET request and loads `index.erb` in the browser.

### Step 2:

Start writing HTML in `index.erb`. Run the rspec tests to make sure you have the appropriate content on the page.

Clone this lab here: <https://github.com/learn-co-curriculum/sinatra-basic-views-lab>
