Added rails stuff