Generate a records controller