works with rails 4 now