<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments for Jul's blog</title>
	<atom:link href="http://blog.js.hu/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.js.hu</link>
	<description>Musings from the news of web, roleplaying and technology</description>
	<lastBuildDate>Wed, 26 Jan 2011 01:36:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic by Phlegx</title>
		<link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/comment-page-1/#comment-254</link>
		<dc:creator>Phlegx</dc:creator>
		<pubDate>Wed, 26 Jan 2011 01:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=175#comment-254</guid>
		<description>Ok, nice!&lt;br&gt;&lt;br&gt;&gt;&gt; With this script is it possible to search across relations? Example &lt;a href=&quot;http://user.residence.name&quot; rel=&quot;nofollow&quot;&gt;user.residence.name&lt;/a&gt;&lt;br&gt;&lt;br&gt;Do I have to make joins?</description>
		<content:encoded><![CDATA[<p>Ok, nice!</p>
<p>&gt;&gt; With this script is it possible to search across relations? Example <a href="http://user.residence.name" rel="nofollow">user.residence.name</a></p>
<p>Do I have to make joins?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic by julian7</title>
		<link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/comment-page-1/#comment-253</link>
		<dc:creator>julian7</dc:creator>
		<pubDate>Wed, 26 Jan 2011 01:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=175#comment-253</guid>
		<description>Memoizable just caches the result of your method, it&#039;s more like def method() @_method &#124;&#124;= ... end. You can put these methods to another controller (may I suggest using another class which inherits ActiveController, just to be able to exclude these methods if they&#039;re not needed), however you won&#039;t be able to use @@index_columns, because it would be propagated to all other objects. You&#039;ll have to use class methods to do so:&lt;br&gt;&lt;br&gt;    class SortableController &lt; ApplicationController&lt;br&gt;      protected&lt;br&gt;      def order_by ... end&lt;br&gt;      def sort_index&lt;br&gt;        self.class.index_columns.include?(params[:sidx]) ? params[:sidx] : nil&lt;br&gt;      end&lt;br&gt;      def sort_order&lt;br&gt;        params[:sord] == &#039;desc&#039; ? &#039;desc&#039; : &#039;asc&#039;&lt;br&gt;      end&lt;br&gt;    end&lt;br&gt;&lt;br&gt;and in your controller:&lt;br&gt;&lt;br&gt;    class WhateverController &lt; SortableController&lt;br&gt;      def self.index_columns&lt;br&gt;        @@index_columns &#124;&#124;= [:act, :id, :firstname, :lastname, :&quot;&lt;a href=&quot;http://region.name&quot; rel=&quot;nofollow&quot;&gt;region.name&lt;/a&gt;&quot;, :&quot;&lt;a href=&quot;http://residence.name&quot; rel=&quot;nofollow&quot;&gt;residence.name&lt;/a&gt;&quot;]&lt;br&gt;      end&lt;br&gt;      ...&lt;br&gt;    end&lt;br&gt;&lt;br&gt;The catch is @@index_columns will be native only for WhateverController, and it won&#039;t be propagated to SortableController.</description>
		<content:encoded><![CDATA[<p>Memoizable just caches the result of your method, it&#39;s more like def method() @_method ||= &#8230; end. You can put these methods to another controller (may I suggest using another class which inherits ActiveController, just to be able to exclude these methods if they&#39;re not needed), however you won&#39;t be able to use @@index_columns, because it would be propagated to all other objects. You&#39;ll have to use class methods to do so:</p>
<p>    class SortableController &lt; ApplicationController<br />      protected<br />      def order_by &#8230; end<br />      def sort_index<br />        self.class.index_columns.include?(params[:sidx]) ? params[:sidx] : nil<br />      end<br />      def sort_order<br />        params[:sord] == &#39;desc&#39; ? &#39;desc&#39; : &#39;asc&#39;<br />      end<br />    end</p>
<p>and in your controller:</p>
<p>    class WhateverController &lt; SortableController<br />      def self.index_columns<br />        @@index_columns ||= [:act, :id, :firstname, :lastname, :"<a href="http://region.name" rel="nofollow">region.name</a>", :"<a href="http://residence.name" rel="nofollow">residence.name</a>"]<br />      end<br />      &#8230;<br />    end</p>
<p>The catch is @@index_columns will be native only for WhateverController, and it won&#39;t be propagated to SortableController.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic by Phlegx</title>
		<link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/comment-page-1/#comment-252</link>
		<dc:creator>Phlegx</dc:creator>
		<pubDate>Tue, 25 Jan 2011 18:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=175#comment-252</guid>
		<description>Ohh nice! I test it today. If it works then you are THE BEST!&lt;br&gt;The code looks simple and clear but what is ActiveSupport::Memoizable?!&lt;br&gt;How can i do to put the :order_by, :sort_index, :sort_order methods to the application controller? Because I have the jqgrid on all index views and so I have to add all this methods to every controller.&lt;br&gt;&lt;br&gt;Whit this script is it possible to search across model attributes in relations with e.g. the model user that shows the jqgrid on index:&lt;br&gt;&lt;br&gt;@@index_columns &#124;&#124;= [:act, :id, :firstname, :lastname, :&#039;&lt;a href=&quot;http://region.name&quot; rel=&quot;nofollow&quot;&gt;region.name&lt;/a&gt;&#039;, :&#039;&lt;a href=&quot;http://residence.name&quot; rel=&quot;nofollow&quot;&gt;residence.name&lt;/a&gt;&#039;]&lt;br&gt;&lt;br&gt;So, :&#039;&lt;a href=&quot;http://region.name&quot; rel=&quot;nofollow&quot;&gt;region.name&lt;/a&gt;&#039; and :&#039;&lt;a href=&quot;http://residence.name&quot; rel=&quot;nofollow&quot;&gt;residence.name&lt;/a&gt;&#039; are two models in relation with the model user.&lt;br&gt;&lt;br&gt;bye</description>
		<content:encoded><![CDATA[<p>Ohh nice! I test it today. If it works then you are THE BEST!<br />The code looks simple and clear but what is ActiveSupport::Memoizable?!<br />How can i do to put the <img src='http://blog.js.hu/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder_by, :sort_index, :sort_order methods to the application controller? Because I have the jqgrid on all index views and so I have to add all this methods to every controller.</p>
<p>Whit this script is it possible to search across model attributes in relations with e.g. the model user that shows the jqgrid on index:</p>
<p>@@index_columns ||= [:act, :id, :firstname, :lastname, :&#39;<a href="http://region.name" rel="nofollow">region.name</a>&#39;, :&#39;<a href="http://residence.name" rel="nofollow">residence.name</a>&#39;]</p>
<p>So, :&#39;<a href="http://region.name" rel="nofollow">region.name</a>&#39; and :&#39;<a href="http://residence.name" rel="nofollow">residence.name</a>&#39; are two models in relation with the model user.</p>
<p>bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic by julian7</title>
		<link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/comment-page-1/#comment-251</link>
		<dc:creator>julian7</dc:creator>
		<pubDate>Tue, 25 Jan 2011 14:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=175#comment-251</guid>
		<description>Yep, searchlogic is not in my current stack. This is how a recent users#index looks like:&lt;br&gt;&lt;a href=&quot;https://gist.github.com/794700&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/794700&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Yep, searchlogic is not in my current stack. This is how a recent users#index looks like:<br /><a href="https://gist.github.com/794700" rel="nofollow">https://gist.github.com/794700</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic by Phlegx</title>
		<link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/comment-page-1/#comment-250</link>
		<dc:creator>Phlegx</dc:creator>
		<pubDate>Tue, 25 Jan 2011 02:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=175#comment-250</guid>
		<description>Hi!&lt;br&gt;&lt;br&gt;How looks the code for rails3? So, you have uninstalled searchlogic?&lt;br&gt;&lt;br&gt;bye&lt;br&gt;phlegx</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>How looks the code for rails3? So, you have uninstalled searchlogic?</p>
<p>bye<br />phlegx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic by julian7</title>
		<link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/comment-page-1/#comment-249</link>
		<dc:creator>julian7</dc:creator>
		<pubDate>Thu, 23 Sep 2010 19:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=175#comment-249</guid>
		<description>I already switched to Rails3, and it doesn&#039;t check params[:sidx] (it should be one of the columns). Anyways, in rails3, arel does a very nice job, and searchlogic is not needed anymore.&lt;br&gt;&lt;br&gt;Search and order by should work in the same time, however it could depend on your database backend. Which one you use?</description>
		<content:encoded><![CDATA[<p>I already switched to Rails3, and it doesn&#39;t check params[:sidx] (it should be one of the columns). Anyways, in rails3, arel does a very nice job, and searchlogic is not needed anymore.</p>
<p>Search and order by should work in the same time, however it could depend on your database backend. Which one you use?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic by Phlegx</title>
		<link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/comment-page-1/#comment-248</link>
		<dc:creator>Phlegx</dc:creator>
		<pubDate>Tue, 21 Sep 2010 19:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=175#comment-248</guid>
		<description>Hi!&lt;br&gt;&lt;br&gt;Nice work. Some suggestions:&lt;br&gt;&lt;br&gt;- What is your used Rails Version?&lt;br&gt;I use 2.3.8 and i have to change the method public_send to send to get it to work.&lt;br&gt;&lt;br&gt;- If i search on a column (e.g. username) AND i order the the username column, i get an error. I cannot search AND order a column at the same time. Can you help me please? I&#039;m very newbie in Rails. &lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;phlegx</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Nice work. Some suggestions:</p>
<p>- What is your used Rails Version?<br />I use 2.3.8 and i have to change the method public_send to send to get it to work.</p>
<p>- If i search on a column (e.g. username) AND i order the the username column, i get an error. I cannot search AND order a column at the same time. Can you help me please? I&#39;m very newbie in Rails. </p>
<p>Cheers<br />phlegx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Make rails3 deployment more robust with inploy by Delicious Bookmarks for July 27th through July 28th &#171; Lâmôlabs</title>
		<link>http://blog.js.hu/2010/07/14/make-rails3-deployment-more-robust-with-inploy/comment-page-1/#comment-247</link>
		<dc:creator>Delicious Bookmarks for July 27th through July 28th &#171; Lâmôlabs</dc:creator>
		<pubDate>Wed, 28 Jul 2010 13:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=186#comment-247</guid>
		<description>[...] Jul&#8217;s blog &#187; Make rails3 deployment more robust with inploy &#8211; July 28th  %(postalicious-tags)( tags: capistrano deployment rails3 deploy inploy sysadmin rails ruby )% [...]</description>
		<content:encoded><![CDATA[<p>[...] Jul&rsquo;s blog &raquo; Make rails3 deployment more robust with inploy &#8211; July 28th  %(postalicious-tags)( tags: capistrano deployment rails3 deploy inploy sysadmin rails ruby )% [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Make rails3 deployment more robust with inploy by Tweets that mention Jul’s blog » Make rails3 deployment more robust with inploy -- Topsy.com</title>
		<link>http://blog.js.hu/2010/07/14/make-rails3-deployment-more-robust-with-inploy/comment-page-1/#comment-246</link>
		<dc:creator>Tweets that mention Jul’s blog » Make rails3 deployment more robust with inploy -- Topsy.com</dc:creator>
		<pubDate>Fri, 16 Jul 2010 17:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=186#comment-246</guid>
		<description>[...] This post was mentioned on Twitter by Carlos Brando, Diego Carrion. Diego Carrion said: RT @carlosbrando: Jul’s blog » Make rails3 deployment more robust with inploy http://bit.ly/aZ3o55 [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Carlos Brando, Diego Carrion. Diego Carrion said: RT @carlosbrando: Jul’s blog » Make rails3 deployment more robust with inploy <a href="http://bit.ly/aZ3o55" rel="nofollow">http://bit.ly/aZ3o55</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tárgyalás a bérgyilkosokkal by Jul&#8217;s blog &#187; Make rails3 deployment more robust with inploy</title>
		<link>http://blog.js.hu/2009/05/11/targyalas-a-bergyilkosokkal/comment-page-1/#comment-245</link>
		<dc:creator>Jul&#8217;s blog &#187; Make rails3 deployment more robust with inploy</dc:creator>
		<pubDate>Wed, 14 Jul 2010 20:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.js.hu/?p=166#comment-245</guid>
		<description>[...] never touched Capistrano, it looked like a rake spinoff. I started using Vlad instead (my post in Hungarian), but at some point, it started to be very frustrating. Deployment took too long, deployment [...]</description>
		<content:encoded><![CDATA[<p>[...] never touched Capistrano, it looked like a rake spinoff. I started using Vlad instead (my post in Hungarian), but at some point, it started to be very frustrating. Deployment took too long, deployment [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

