Upgrades Ruby and Rails versions

* Fixes failing tests
Merge pull request #1 from pedrosmmoreira/update_rails_and_ruby

Upgrades Ruby and Rails versions