Initial rails stuff.