rails can't do this on its own?