Blog

Archive for the Ruby 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

/server.rb File

require “sinatra”
require “date”

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


Basic Ruby Algorithms
Posted on August 6, 2015 in Algorithms, Ruby by Matt Jennings

Print Numbers 1 through 255 Using a For Loop

for i in 1..255
puts “#{i}”
end

Print Numbers 1 through 255 Using
Read more…

To Top ↑