rails 4

Migrating to rails 4.