In the Amazon/Ruby module. when someone searches for an item, and it’s
not found on amazon’s side, there’s a nasty error page that is
displayed. I’d simply like to test if there are no results, to redirect
to a controller/action inside my rails app.
In the search.rb amazon file, in the RDoc, it says that if a block is
available, it will throw it all into @products, but if not it seems to
go here within the search.rb file:
class SearchError < StandardError; end
or would it help if i put the ruby/amazon module inside my rails app?
Thank you very much.
PS: the error:
Amazon::Search::Request::SearchError (Invalid Asin : 0234526345):