Displaying 1 result from an estimated 1 matches for "associate_id".
Did you mean:
associated_id
2007 Apr 04
0
error occurred while evaluating nil.accepts
...s.
If I give index params[:keywords] I get this error:
Amazon::Search::Request::TypeError (non-existent/unimplemented search
type: accepts):
Any advice?
Thanks,
--Dean
def index
unless params[:keywords].nil?
@books = Array.new
request = Amazon::Search::Request.new( DEV_TOKEN, ASSOCIATE_ID,
''us'' )
response = request.keyword_search( params[:keywords] ) do |
product|
@books.push( Book.new( <snip snip> ) )
end
end
respond_to do |f|
f.html { }
f.js { }
end
end
def show
@book = Book.find(params[:id])
resp...