update to use rails 4