Works with rails 3/4 now