hugorod19 / sinatra-basic-views-lab-hou01-seng-ft-082420

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sinatra Basic Views Lab

Objectives

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

Instructions

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.

About

License:Other


Languages

Language:Ruby 96.2%Language:HTML 3.8%