Upgrading to rails 4.
All tests pass now