use with rails 4 beta