works with rails 4