Rails4 alternate