First step at migrating to Rails 4