Update to use rails 4