Upgraded to Rails version 4.0.0 and fixed thrown deprecation warnings