Paginate the results from Amazon product search
I am using the gem [amazon_product][1] for searching the books in Amazon.
The search is perfectly fine but it gets me only a list of first 10 books.
I want to get all the search results and paginate them. How can I do this?

My code looks like this,

    req = AmazonProduct["us"]
    req.configure do |c|
      c.key    = "KEY"
      c.secret = "SECRET_KEY"
      c.tag    = "TAG" 
    end
    resp = req.search("Books", :power => params[:book][:search_term], :sort => "reviewrank")
    @books = resp.to_hash["Items"]["Item"]


  [1]: https://github.com/hakanensari/amazon_product
Paginate the results from Amazon product search
===

I am using the gem [amazon_product][1] for searching the books in Amazon.
The search is perfectly fine but it gets me only a list of first 10 books.
I want to get all the search results and paginate them. How can I do this?

My code looks like this,

    req = AmazonProduct["us"]
    req.configure do |c|
      c.key    = "KEY"
      c.secret = "SECRET_KEY"
      c.tag    = "TAG" 
    end
    resp = req.search("Books", :power => params[:book][:search_term], :sort => "reviewrank")
    @books = resp.to_hash["Items"]["Item"]


  [1]: https://github.com/hakanensari/amazon_product