<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Acts As Amazon Product</title>
	<atom:link href="http://blog.netphase.com/2009/08/05/acts-as-amazon-product/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netphase.com/2009/08/05/acts-as-amazon-product/</link>
	<description>for a connected world</description>
	<lastBuildDate>Thu, 21 Jan 2010 13:34:49 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marc</title>
		<link>http://blog.netphase.com/2009/08/05/acts-as-amazon-product/comment-page-1/#comment-1241</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Sat, 07 Nov 2009 02:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.netphase.com/?p=343#comment-1241</guid>
		<description>As of August 15th, Amazon requires a signature for a item_lookup request. I dug through the code and it seems I can add my secret_key so Amazon::Ecs can generate a signature. However, it seems Amazon::Ecs.options.secret_key never gets set. I&#039;m not sure if this is a problem with Amazon:Ecs or with AAAP but I couldn&#039;t find anything about it on the web so I&#039;m thinking it&#039;s AAAP-related. – Any ideas?

@Jose
I&#039;ve had a problem with AAAP before and turned out I was using integers instead of strings for my ISBN numbers. I can&#039;t say if that would be your problem without seeing the rest of the code, but I thought I&#039;d share it anyway.</description>
		<content:encoded><![CDATA[<p>As of August 15th, Amazon requires a signature for a item_lookup request. I dug through the code and it seems I can add my secret_key so Amazon::Ecs can generate a signature. However, it seems Amazon::Ecs.options.secret_key never gets set. I&#8217;m not sure if this is a problem with Amazon:Ecs or with AAAP but I couldn&#8217;t find anything about it on the web so I&#8217;m thinking it&#8217;s AAAP-related. – Any ideas?</p>
<p>@Jose<br />
I&#8217;ve had a problem with AAAP before and turned out I was using integers instead of strings for my ISBN numbers. I can&#8217;t say if that would be your problem without seeing the rest of the code, but I thought I&#8217;d share it anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://blog.netphase.com/2009/08/05/acts-as-amazon-product/comment-page-1/#comment-1211</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Fri, 07 Aug 2009 09:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.netphase.com/?p=343#comment-1211</guid>
		<description>Hi,

I&#039;ve been trying to set this up to work with a Video search index and UPC lookup instead of ASIN.

I got it working once (have no idea how) but it broke and haven&#039;t been able to get it running correctly again.

Here are my model arguments:

  acts_as_amazon_product  :access_key =&gt; &#039;XXXXXXXXXX&#039;, :associate_tag =&gt; &#039;XXXXXXXXXX&#039; ,:search_index =&gt; &#039;Video&#039;, :auto_load_fields =&gt; {:title =&gt; &#039;title&#039;, :upc =&gt; &#039;upc&#039;, 
   :category =&gt; &#039;binding&#039;, :asin =&gt; &#039;asin&#039;,
  :description =&gt; &#039;content&#039;, :poster =&gt; &#039;smallimage/url&#039;, :poster_url =&gt; &#039;mediumimage/url&#039;, 
  }

and my view:


    &lt;tr class=&quot;&quot;&gt;
      
     
     
     &lt;img src= &quot;&quot;&gt;
	 
[..........]

Error: NoMethodError in Peliculas#index

Showing app/views/peliculas/index.html.erb where line #16 raised: 
You have a nil object when you didn&#039;t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.valid?

16:      

Console:
No known attributes to search by

Help will be greatly appreciated!!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve been trying to set this up to work with a Video search index and UPC lookup instead of ASIN.</p>
<p>I got it working once (have no idea how) but it broke and haven&#8217;t been able to get it running correctly again.</p>
<p>Here are my model arguments:</p>
<p>  acts_as_amazon_product  :access_key =&gt; &#8216;XXXXXXXXXX&#8217;, :associate_tag =&gt; &#8216;XXXXXXXXXX&#8217; ,:search_index =&gt; &#8216;Video&#8217;, :auto_load_fields =&gt; {:title =&gt; &#8216;title&#8217;, :upc =&gt; &#8216;upc&#8217;,<br />
   :category =&gt; &#8216;binding&#8217;, :asin =&gt; &#8216;asin&#8217;,<br />
  :description =&gt; &#8216;content&#8217;, :poster =&gt; &#8217;smallimage/url&#8217;, :poster_url =&gt; &#8216;mediumimage/url&#8217;,<br />
  }</p>
<p>and my view:</p>
<p>    &lt;tr class=&#8221;"&gt;</p>
<p>     &lt;img src= &#8220;&#8221;&gt;</p>
<p>[..........]</p>
<p>Error: NoMethodError in Peliculas#index</p>
<p>Showing app/views/peliculas/index.html.erb where line #16 raised:<br />
You have a nil object when you didn&#8217;t expect it!<br />
You might have expected an instance of ActiveRecord::Base.<br />
The error occurred while evaluating nil.valid?</p>
<p>16:      </p>
<p>Console:<br />
No known attributes to search by</p>
<p>Help will be greatly appreciated!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
