Blog

Archive for the Sinatra Category


Basic Active Record Database Set Up Using Sinatra Ruby Framework
Posted on August 8, 2015 in Ruby, Sinatra by Matt Jennings

Assuming your inside a directory called active-record, follow the steps below:

In Terminal type gem list to list all Ruby Gems …

Read more


Displaying Dates in Ruby Using the Sinatra Ruby Framework
Posted on August 7, 2015 in Ruby, Sinatra by Matt Jennings

require “sinatra”
require “date”

get “/” do
# Use “Time.new” to get the current date and time
time = Time.new

Read more

To Top ↑