changing from sinatra to rails