Fixing Object #<Object> has no method 'prev'

The method prev is missing at API object. I'm getting this error when i click prev button.