<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: ebay_shopping is now a gem (and now at github)</title>
	<atom:link href="http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/feed/" rel="self" type="application/rss+xml" />
	<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/</link>
	<description>Old dogs, new tricks</description>
	<lastBuildDate>Sun, 30 Aug 2009 07:39:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ctagg</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-158</link>
		<dc:creator>ctagg</dc:creator>
		<pubDate>Sat, 14 Mar 2009 17:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-158</guid>
		<description>&lt;code&gt;script/plugin install http://ebay-shopping.googlecode.com/svn/trunk/ ebay_shopping&lt;/code&gt;
That&#039;ll be your problem. You&#039;ve installed the plugin AND the gem, and rails give the plugin precedence as it lives in the vendor directory. Remove that and you shoiuld be good to go.</description>
		<content:encoded><![CDATA[<p><code>script/plugin install <a href="http://ebay-shopping.googlecode.com/svn/trunk/" rel="nofollow">http://ebay-shopping.googlecode.com/svn/trunk/</a> ebay_shopping</code><br />
That&#8217;ll be your problem. You&#8217;ve installed the plugin AND the gem, and rails give the plugin precedence as it lives in the vendor directory. Remove that and you shoiuld be good to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-157</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sat, 14 Mar 2009 11:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-157</guid>
		<description>Just about tried everything I can think of now.
Whatever I try I get the same argument error when I run
EbayShopping::Request.config_params(&quot;#{RAILS_ROOT}/config/ebay.yml&quot;, RAILS_ENV)

Now I know that I&#039;m doing something wrong but I just can&#039;t figure out what it is.

Nevermind. I&#039;m going to figure out a different way of using this for the minuite and when I get more time I&#039;ll look at finding out how to install the gem properly.

Thanks for all the help

James</description>
		<content:encoded><![CDATA[<p>Just about tried everything I can think of now.<br />
Whatever I try I get the same argument error when I run<br />
EbayShopping::Request.config_params(&#8220;#{RAILS_ROOT}/config/ebay.yml&#8221;, RAILS_ENV)</p>
<p>Now I know that I&#8217;m doing something wrong but I just can&#8217;t figure out what it is.</p>
<p>Nevermind. I&#8217;m going to figure out a different way of using this for the minuite and when I get more time I&#8217;ll look at finding out how to install the gem properly.</p>
<p>Thanks for all the help</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-156</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sat, 14 Mar 2009 09:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-156</guid>
		<description>lol :-)
simply run the usual: script/plugin install http://ebay-shopping.googlecode.com/svn/trunk/ ebay_shopping
Reckon that may be the problem :-)</description>
		<content:encoded><![CDATA[<p>lol <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
simply run the usual: script/plugin install <a href="http://ebay-shopping.googlecode.com/svn/trunk/" rel="nofollow">http://ebay-shopping.googlecode.com/svn/trunk/</a> ebay_shopping<br />
Reckon that may be the problem <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-155</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sat, 14 Mar 2009 09:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-155</guid>
		<description>I am certain that this is my bad somewhere along the line.

The installation instructions I followed were
gem sources -a http://gems.github.com # if you haven&#039;t done this in the past for other gems hosted at github
sudo gem install ctagg-ebay_shopping

simply run the usual: script/plugin install http://ebay-shopping.googlecode.com/svn/trunk/ ebay_shopping

Then from the root of your rails app run ruby vendor/plugins/ebay_shopping/install.rb. 

I&#039;ll check that I haven&#039;t got the plugin installed somehow and re-install everything.

Thanks for your help.
I&#039;ll let you know how I get on.
James</description>
		<content:encoded><![CDATA[<p>I am certain that this is my bad somewhere along the line.</p>
<p>The installation instructions I followed were<br />
gem sources -a <a href="http://gems.github.com" rel="nofollow">http://gems.github.com</a> # if you haven&#8217;t done this in the past for other gems hosted at github<br />
sudo gem install ctagg-ebay_shopping</p>
<p>simply run the usual: script/plugin install <a href="http://ebay-shopping.googlecode.com/svn/trunk/" rel="nofollow">http://ebay-shopping.googlecode.com/svn/trunk/</a> ebay_shopping</p>
<p>Then from the root of your rails app run ruby vendor/plugins/ebay_shopping/install.rb. </p>
<p>I&#8217;ll check that I haven&#8217;t got the plugin installed somehow and re-install everything.</p>
<p>Thanks for your help.<br />
I&#8217;ll let you know how I get on.<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctagg</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-154</link>
		<dc:creator>ctagg</dc:creator>
		<pubDate>Fri, 13 Mar 2009 23:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-154</guid>
		<description>You can still override the country/ebay site on the fly -- the default country just sets the country/site which is used if no country is passed. On &lt;a href=&quot;http://autopendium.com&quot; rel=&quot;nofollow&quot;&gt;Autopendium, the classic car website&lt;/a&gt; I run, the ebay results returned are based on the country of the visitor (which is autosensed via javascript and Google Ajax library API).

Just pass :site_id =&gt; [desired site_id] along with the other params to override the default.

I&#039;m struggling to understand the problem re the config file -- the error implies that the config_params method doesn&#039;t take any arguments (which was how it was configured in the plugin), but in the gem you specify the location of the config file (since it&#039;s not necessarily being called from a rails app), as you can see from the code &lt;a href=&quot;http://github.com/ctagg/ebay_shopping/blob/4eebb49419817ae2be73ddd7e9614652a81d1994/lib/ebay_shopping.rb&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>You can still override the country/ebay site on the fly &#8212; the default country just sets the country/site which is used if no country is passed. On <a href="http://autopendium.com" rel="nofollow">Autopendium, the classic car website</a> I run, the ebay results returned are based on the country of the visitor (which is autosensed via javascript and Google Ajax library API).</p>
<p>Just pass :site_id =&gt; [desired site_id] along with the other params to override the default.</p>
<p>I&#8217;m struggling to understand the problem re the config file &#8212; the error implies that the config_params method doesn&#8217;t take any arguments (which was how it was configured in the plugin), but in the gem you specify the location of the config file (since it&#8217;s not necessarily being called from a rails app), as you can see from the code <a href="http://github.com/ctagg/ebay_shopping/blob/4eebb49419817ae2be73ddd7e9614652a81d1994/lib/ebay_shopping.rb" rel="nofollow">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-153</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 13 Mar 2009 22:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-153</guid>
		<description>Yup,
I&#039;m using the Gem from GitHub
I did get confused over FindItems and find_items.
I&#039;ll switch to using the find_items. Thank you.

I just found your other Blog on the original plugin and afeter a good read of that I found the instructions for the environment.rb settings.

It&#039;s now totally obvious to me that I have the location problems because I don&#039;t have this set up.

I do not actually want to use the yml in my final app as I want to be able to change the location on the fly but it would be good to find out what is causing the argument errors.
If there is anyhting you think I should be doing to get this error sorted or to track it down then let me know.

I&#039;ll keep pligging away at it and see what I can come up with.

Thanks for the info on the 3 items thing. I just found that on your other blog too. :-)

James</description>
		<content:encoded><![CDATA[<p>Yup,<br />
I&#8217;m using the Gem from GitHub<br />
I did get confused over FindItems and find_items.<br />
I&#8217;ll switch to using the find_items. Thank you.</p>
<p>I just found your other Blog on the original plugin and afeter a good read of that I found the instructions for the environment.rb settings.</p>
<p>It&#8217;s now totally obvious to me that I have the location problems because I don&#8217;t have this set up.</p>
<p>I do not actually want to use the yml in my final app as I want to be able to change the location on the fly but it would be good to find out what is causing the argument errors.<br />
If there is anyhting you think I should be doing to get this error sorted or to track it down then let me know.</p>
<p>I&#8217;ll keep pligging away at it and see what I can come up with.</p>
<p>Thanks for the info on the 3 items thing. I just found that on your other blog too. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctagg</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-152</link>
		<dc:creator>ctagg</dc:creator>
		<pubDate>Fri, 13 Mar 2009 21:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-152</guid>
		<description>Also, if you want more than the default 3 items returned, you have to specify it in the request parameters (see &lt;a href=&quot;http://developer.ebay.com/DevZone/shopping/docs/CallRef/FindItems.html&quot; rel=&quot;nofollow&quot;&gt;api docs&lt;/a&gt;). So your code should look something like:
&lt;code&gt;EbayShopping::Request.new(:find_items, {:query_keywords =&gt; item_to_search_for, :max_entries=&gt;50}) # you can use FindItems, but find_items is a bit more ruby-ish&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Also, if you want more than the default 3 items returned, you have to specify it in the request parameters (see <a href="http://developer.ebay.com/DevZone/shopping/docs/CallRef/FindItems.html" rel="nofollow">api docs</a>). So your code should look something like:<br />
<code>EbayShopping::Request.new(:find_items, {:query_keywords =&gt; item_to_search_for, :max_entries=&gt;50}) # you can use FindItems, but find_items is a bit more ruby-ish</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctagg</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-151</link>
		<dc:creator>ctagg</dc:creator>
		<pubDate>Fri, 13 Mar 2009 21:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-151</guid>
		<description>Just to check. You&#039;re definitely using the gem (from github) rather than the plugin, right?</description>
		<content:encoded><![CDATA[<p>Just to check. You&#8217;re definitely using the gem (from github) rather than the plugin, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-150</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 13 Mar 2009 19:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-150</guid>
		<description>Sorry. Don&#039;t know why the partial code cut off like that in my last post
Here it is again
&lt;code&gt;


	Item: &lt;a href=&gt;&lt;/a&gt;


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sorry. Don&#8217;t know why the partial code cut off like that in my last post<br />
Here it is again<br />
<code></p>
<p>	Item: &lt;a href=&gt;</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pushrod.wordpress.com/2008/05/13/ebay_shopping-is-now-a-gem-and-now-at-github/#comment-149</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 13 Mar 2009 19:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/?p=34#comment-149</guid>
		<description>Your response lead me to investigate further and I have not added anything into the environment.rb
This explains a lot but I get the same error as above if I do.

I have a model class
&lt;code&gt;
class EbayTest
  def self.search_ebay(item_to_search_for)
    @request = EbayShopping::Request.new(:FindItems, {:query_keywords =&gt; item_to_search_for})
  end
end
&lt;/code&gt;
I&#039;m calling it from my controller in response to an AJAX request
&lt;code&gt;
  def search_result
#    logger.debug(&quot;### Query - #{params[:search_query]}&quot;)
    @result = EbayTest.search_ebay(params[:search_query])
    @ebay_response = @result.response
    respond_to do &#124;format&#124;
      format.js
    end
  end
&lt;/code
The partial looks like this
&lt;code&gt;


	Item: &lt;a href=&gt;&lt;/a&gt;
	


&lt;/code&gt;
This only ever gets 3 results
Should be 50 as this is the maximum for the shopping api and the total count is around 200 for the search I&#039;m doing.

Thanks again for such a quick response.</description>
		<content:encoded><![CDATA[<p>Your response lead me to investigate further and I have not added anything into the environment.rb<br />
This explains a lot but I get the same error as above if I do.</p>
<p>I have a model class<br />
<code><br />
class EbayTest<br />
  def self.search_ebay(item_to_search_for)<br />
    @request = EbayShopping::Request.new(:FindItems, {:query_keywords =&gt; item_to_search_for})<br />
  end<br />
end<br />
</code><br />
I&#8217;m calling it from my controller in response to an AJAX request<br />
<code><br />
  def search_result<br />
#    logger.debug("### Query - #{params[:search_query]}")<br />
    @result = EbayTest.search_ebay(params[:search_query])<br />
    @ebay_response = @result.response<br />
    respond_to do |format|<br />
      format.js<br />
    end<br />
  end<br />
&lt;/code<br />
The partial looks like this<br />
</code><code></p>
<p>	Item: &lt;a href=&gt;</p>
<p></code><br />
This only ever gets 3 results<br />
Should be 50 as this is the maximum for the shopping api and the total count is around 200 for the search I'm doing.</p>
<p>Thanks again for such a quick response.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
