Converting blog project from Sinatra to Rails