support rails version >3

hi, if this error,you can reset it