Add rails and its dependencies