<?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: Tutorial: Pagination, ordering, and searching with Searchlogic</title>
	<atom:link href="http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/</link>
	<description>Ben Johnson's thoughts and programming techniques</description>
	<lastBuildDate>Tue, 26 Jan 2010 22:32:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zigga</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-37</link>
		<dc:creator>Zigga</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-37</guid>
		<description>Hey thanks for putting this together.  Found your post via RubyFlow.

I *think* the &quot;show all&quot; option under the &quot;Per Page:&quot; drop down is not working.</description>
		<content:encoded><![CDATA[<p>Hey thanks for putting this together.  Found your post via RubyFlow.</p>
<p>I *think* the &quot;show all&quot; option under the &quot;Per Page:&quot; drop down is not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-38</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-38</guid>
		<description>Thanks for letting me know about that, I really appreciate it.

I fixed the issue, added some tests in to check for that problem, and released a new version of the gem. All should be good now.</description>
		<content:encoded><![CDATA[<p>Thanks for letting me know about that, I really appreciate it.</p>
<p>I fixed the issue, added some tests in to check for that problem, and released a new version of the gem. All should be good now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D. Rothlisberger</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-39</link>
		<dc:creator>D. Rothlisberger</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-39</guid>
		<description>This looks awesome, thanks for making it available.

How easy would it be to implement &quot;saved searches&quot;, i.e. saving into the database the advanced search criteria entered by the user into the form?

(I admit I haven&#039;t looked into Searchgasm in any depth, but the &quot;new_search&quot; method in your examples doesn&#039;t seem to exist in the API docs -- I assume it instantiates Searchgasm::Search::Base).</description>
		<content:encoded><![CDATA[<p>This looks awesome, thanks for making it available.</p>
<p>How easy would it be to implement &quot;saved searches&quot;, i.e. saving into the database the advanced search criteria entered by the user into the form?</p>
<p>(I admit I haven&#8217;t looked into Searchgasm in any depth, but the &quot;new_search&quot; method in your examples doesn&#8217;t seem to exist in the API docs &#8212; I assume it instantiates Searchgasm::Search::Base).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-40</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-40</guid>
		<description>Hello Mr. Rothlisberger,

Before I released this I had a &quot;personal&quot; version of searchgasm that had a &quot;dump&quot; method, that allowed you to save all of the pertinent details of the search and then load it back up. I took it out because I wanted to do a little more research on Marshalling an object or &quot;serializing&quot; it and see if that would be a better solution. Regardless, all that searchgasm is doing is building the options you pass into ActiveRecord::Base.find(). If you do @search.sanitize you will see all of the options right there. Maybe you can do something with that? If you want, send me an email, or write in this comment about what you are trying to do with a little more details and I&#039;ll come up with a solution and have it added in this week.

Lastly, I took the ActiveRecord extensions out of the docs. I apologize. I forgot I did that and will add them back in. A lot of what I did for ActiveRecord were alias_chain_methods so I didn&#039;t think the documentation on that would be 100% clear. I&#039;ll work on that today.

Thanks for the feedback and suggestion.</description>
		<content:encoded><![CDATA[<p>Hello Mr. Rothlisberger,</p>
<p>Before I released this I had a &quot;personal&quot; version of searchgasm that had a &quot;dump&quot; method, that allowed you to save all of the pertinent details of the search and then load it back up. I took it out because I wanted to do a little more research on Marshalling an object or &quot;serializing&quot; it and see if that would be a better solution. Regardless, all that searchgasm is doing is building the options you pass into ActiveRecord::Base.find(). If you do @search.sanitize you will see all of the options right there. Maybe you can do something with that? If you want, send me an email, or write in this comment about what you are trying to do with a little more details and I&#8217;ll come up with a solution and have it added in this week.</p>
<p>Lastly, I took the ActiveRecord extensions out of the docs. I apologize. I forgot I did that and will add them back in. A lot of what I did for ActiveRecord were alias_chain_methods so I didn&#8217;t think the documentation on that would be 100% clear. I&#8217;ll work on that today.</p>
<p>Thanks for the feedback and suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seb</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-41</link>
		<dc:creator>seb</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-41</guid>
		<description>Hi, Nice work.

Are has_one/belongs_to relationships supported? I don&#039;t get ordering records working with those associations.

Example: has_one :admin, :class_name =&gt; &quot;User&quot;
order_by_link(:admin =&gt; :login)
=&gt; click on the order results in a
NameError (uninitialized constant Admin):

Thanks for help</description>
		<content:encoded><![CDATA[<p>Hi, Nice work.</p>
<p>Are has_one/belongs_to relationships supported? I don&#8217;t get ordering records working with those associations.</p>
<p>Example: has_one :admin, :class_name =&gt; &quot;User&quot;<br />
order_by_link(:admin =&gt; :login)<br />
=&gt; click on the order results in a<br />
NameError (uninitialized constant Admin):</p>
<p>Thanks for help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-42</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-42</guid>
		<description>Sorry for the delayed reponse. The best way to get ahold of me is through email, create a ticket on lighthouse, or send me a message on github. The issues you described have been fixed. Try updating from the repository on github. I also release the fixes as an update through rubygems. Let me know if you still have any other issues. Thanks!</description>
		<content:encoded><![CDATA[<p>Sorry for the delayed reponse. The best way to get ahold of me is through email, create a ticket on lighthouse, or send me a message on github. The issues you described have been fixed. Try updating from the repository on github. I also release the fixes as an update through rubygems. Let me know if you still have any other issues. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roadburn</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-43</link>
		<dc:creator>roadburn</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-43</guid>
		<description>love it! thanks for releasing it :)

Would be even cooler if we could choose which conditions to join with &quot;OR&quot; and &quot;AND&quot;, instead of only being able to join all the conditions with &quot;OR&quot; or &quot;AND&quot;.

or can that be done already?</description>
		<content:encoded><![CDATA[<p>love it! thanks for releasing it :)</p>
<p>Would be even cooler if we could choose which conditions to join with &quot;OR&quot; and &quot;AND&quot;, instead of only being able to join all the conditions with &quot;OR&quot; or &quot;AND&quot;.</p>
<p>or can that be done already?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-44</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-44</guid>
		<description>roadburn, honestly that is not easy, because when you start joining conditions with &quot;and&quot; and &quot;or&quot; the order of the conditions matter and you need a way to group conditions. It gets really complicated. If you need to do complicated searching SQL is perfect for that. I never intended for searchgasm to replace SQL, I just wanted it to assist with those mundane search forms.</description>
		<content:encoded><![CDATA[<p>roadburn, honestly that is not easy, because when you start joining conditions with &quot;and&quot; and &quot;or&quot; the order of the conditions matter and you need a way to group conditions. It gets really complicated. If you need to do complicated searching SQL is perfect for that. I never intended for searchgasm to replace SQL, I just wanted it to assist with those mundane search forms.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-45</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-45</guid>
		<description>Hey Jeff, I sent you off an email with the resolution to your problem. For any other having the same issue, it works exactly like resources work. When you pass an AR object it decides what url to use, searchgasm assumes since you are searching feeds that you want to call feed_url. You can fix it by form_for @search, :url =&gt; your_url.</description>
		<content:encoded><![CDATA[<p>Hey Jeff, I sent you off an email with the resolution to your problem. For any other having the same issue, it works exactly like resources work. When you pass an AR object it decides what url to use, searchgasm assumes since you are searching feeds that you want to call feed_url. You can fix it by form_for @search, :url =&gt; your_url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-and-searching-with-searchlogic/comment-page-1/#comment-46</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-pagination-ordering-and-searching-with-searchlogic#comment-46</guid>
		<description>Hello,
  I have this code which is very similar to your UserController:
***************
class DescriptionsController &lt; ApplicationController
  def index
    @search = Description.new_search(params[:search])

    @descriptions, @descriptions_count = @search.all, @search.count

  end
end
**************
    But somehow I hit an error and it says new_search is missing. Would be able to tell me what has gone wrong? Thanks. Appreciate your prompt reply.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
  I have this code which is very similar to your UserController:<br />
***************<br />
class DescriptionsController &lt; ApplicationController<br />
  def index<br />
    @search = Description.new_search(params[:search])</p>
<p>    @descriptions, @descriptions_count = @search.all, @search.count</p>
<p>  end<br />
end<br />
**************<br />
    But somehow I hit an error and it says new_search is missing. Would be able to tell me what has gone wrong? Thanks. Appreciate your prompt reply.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
