update to ruby 2 and rails 4