Updated to rails 4 and updated version (0.4.2)

This pull request updates both the rails version and the gem version.