migrated to ruby 2 and rails 4.beta1