used_cars = UsedCar.paginate(:page => params[:page], :per_page => 5)
used_cars_hash = used_cars.as_json
I show all used_cars_hash in my view. But when I add <% will_paginate @user_cars_hash %>
it gives an error
How to show pagination counter on array?
Because when we add <% will_paginate @user_cars_hash %>
it gives an error
undefined method total_pages' for #<Array:0x007f1edef43c48>