rails upgraded to version 4

Upgrade to rails 4