working with rails 4