Revert "update to rails 4"

This reverts commit ec62a2b063fcfc4f86f5609ca19e13130f218d73.