Make compatible  rails and sinatra