Attempt to get working with rails 4