updated rails 4 api to 4.0.1