change to the new Rails way