adding rails stuff