updated to rails4.0 and ruby 2.0