check with rails 4