Sinatra Basic Views Lab
Last updated
Last updated
Set a controller action to render a separate view
Render HTML in the view
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.
In app.rb
, you'll want to create a controller action that responds to a GET request and loads index.erb
in the browser.
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