In my previous posts, I examined how to enable data persistence in Sinatra using only the params hash and query parameters.
params
My main story this week was to present a grid of ‘X’s to a web user — the first step in creating a web version of my console Battleships game. The user should be able to select a point on the grid…
In my previous post, I explained the basics of Sinatra — how to set up your first GET route, making use of embedded Ruby templates and the erb Sinatra method, and how to start a local server…
erb
In my previous post, we created a very simple Sinatra application to demonstrate how embedded Ruby works, and now we will delve much deeper into Sinatra itself. In my internet travels, I found precious few tutorials on…
In the first part of this series on my first Sinatra web project, I explained on a general level the different tools we would be using to create a web application using Ruby. In this post, we’ll take an in-depth look at how…
I have created a functional version of a console Battleships game in Ruby, where each ‘round’ you are asked to pick coordinates on a 10x10 grid to try to hit hidden boats. In the current formulation, you have 20 or so guesses to…