ยง2023-03-03
- Rails vs. Sinatra by Example by Paul Sobocinski
- Introduction
In this article, we're going to compare the relative merits of Ruby on Rails and Sinatra by building the same web app in both frameworks.
$ mkdir pubic-bookmarks-sinatra && cd $_
$ cat cat public-bookmarks.rb
require 'sinatra'
get '/' do
"#{['Hello', 'Hi', 'Hey', 'Yo'][rand(4)]} World!"
end