Works with Rails4