DEV Community

Luke O'Connell
Luke O'Connell

Posted on

Today I learned - Sinatra

Today I built my first web app with Sinatra. I learned how to create a gemfile and install the gems. I also learned how to route. A resource path with a bare slash is known as the root URL or homepage. Once I got my dice rolling app to work I improved the code using view templates. We use the erb method to load the files from the view templates. I also learned how to use layouts to reduce duplication.

Top comments (0)