Changed to use rails 4 beta1