<?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 for Jigyasa Makkar</title>
	<atom:link href="http://jigyasamakkar.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jigyasamakkar.com</link>
	<description>Ruby on Rails Developer</description>
	<lastBuildDate>Wed, 11 Jan 2012 19:54:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on ActiveRecord Object to Hash assignment in Ruby on Rails by Alex Mercer</title>
		<link>http://jigyasamakkar.com/activerecord-object-to-hash-assignment-in-ruby-on-rails/comment-page-1/#comment-183</link>
		<dc:creator>Alex Mercer</dc:creator>
		<pubDate>Wed, 11 Jan 2012 19:54:14 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=198#comment-183</guid>
		<description>you can use hash in more simplier way.. with `except` method

instead of:
  desired_keys = [&#039;address&#039; , &#039;zipcode&#039; , &#039;city&#039; , &#039;country&#039;]
  local_array = session_user.attributes.select{&#124;key,value&#124; desired_keys.include?(key) }
  local_hash = Hash[*local_array.flatten]

you can use:
  # &#039;name&#039;, &#039;id&#039; - fields that you don&#039;t wanna to see in `local_hash`
  local_hash = session_user.attributes.except(&#039;name&#039;, &#039;id&#039;)</description>
		<content:encoded><![CDATA[<p>you can use hash in more simplier way.. with `except` method</p>
<p>instead of:<br />
  desired_keys = ['address' , 'zipcode' , 'city' , 'country']<br />
  local_array = session_user.attributes.select{|key,value| desired_keys.include?(key) }<br />
  local_hash = Hash[*local_array.flatten]</p>
<p>you can use:<br />
  # &#8216;name&#8217;, &#8216;id&#8217; &#8211; fields that you don&#8217;t wanna to see in `local_hash`<br />
  local_hash = session_user.attributes.except(&#8216;name&#8217;, &#8216;id&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby on Rails views : Time ago in words for string time by Ashish</title>
		<link>http://jigyasamakkar.com/ruby-on-rails-views-time-ago-in-words-for-string-time/comment-page-1/#comment-130</link>
		<dc:creator>Ashish</dc:creator>
		<pubDate>Wed, 09 Nov 2011 15:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=204#comment-130</guid>
		<description>@Shivam : “And the tricky part is, it was different for different environments. “

means that the people using that application were located in different time zones , so using a single time zone as default in environment.rb was not a feasible idea .

Thank you.</description>
		<content:encoded><![CDATA[<p>@Shivam : “And the tricky part is, it was different for different environments. “</p>
<p>means that the people using that application were located in different time zones , so using a single time zone as default in environment.rb was not a feasible idea .</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jqGrid &#8211; Inline Edit woes by Stuart</title>
		<link>http://jigyasamakkar.com/jqgrid-inline-edit-woes/comment-page-1/#comment-127</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Thu, 03 Nov 2011 16:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=260#comment-127</guid>
		<description>Jigyasa-
The JSON calling notation fixed my editRow / aftersavefunc callback issues.  Thank you very much for writing this up.
-Stuart</description>
		<content:encoded><![CDATA[<p>Jigyasa-<br />
The JSON calling notation fixed my editRow / aftersavefunc callback issues.  Thank you very much for writing this up.<br />
-Stuart</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby on Rails Must follow RSS feeds by Alex</title>
		<link>http://jigyasamakkar.com/ruby-on-rails-must-follow-rss-feeds/comment-page-1/#comment-113</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 22 Sep 2011 10:11:12 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=183#comment-113</guid>
		<description>Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby on Rails views : Time ago in words for string time by Shivam Patel</title>
		<link>http://jigyasamakkar.com/ruby-on-rails-views-time-ago-in-words-for-string-time/comment-page-1/#comment-97</link>
		<dc:creator>Shivam Patel</dc:creator>
		<pubDate>Thu, 21 Jul 2011 21:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=204#comment-97</guid>
		<description>why not change the default timezone in application.rb (environment.rb for rails2):

config.time_zone = &quot;Pacific Time (US &amp; Canada)&quot;

Also I couldn&#039;t understand by what you meant by:
&quot;And the tricky part is, it was different for different environments. &quot;</description>
		<content:encoded><![CDATA[<p>why not change the default timezone in application.rb (environment.rb for rails2):</p>
<p>config.time_zone = &#8220;Pacific Time (US &amp; Canada)&#8221;</p>
<p>Also I couldn&#8217;t understand by what you meant by:<br />
&#8220;And the tricky part is, it was different for different environments. &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dynamic is_ ? methods for boolean attributes of a  model by Shadab Ahmed</title>
		<link>http://jigyasamakkar.com/dynamic-is_-methods-for-boolean-attributes-of-a-model/comment-page-1/#comment-96</link>
		<dc:creator>Shadab Ahmed</dc:creator>
		<pubDate>Tue, 05 Jul 2011 19:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=214#comment-96</guid>
		<description>Thats a cool way to do it :)

in my initializer i will have 

class ActiveRecord::Base

private

# your code

end</description>
		<content:encoded><![CDATA[<p>Thats a cool way to do it <img src='http://jigyasamakkar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>in my initializer i will have </p>
<p>class ActiveRecord::Base</p>
<p>private</p>
<p># your code</p>
<p>end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ShareSend by lakshman</title>
		<link>http://jigyasamakkar.com/sharesend/comment-page-1/#comment-94</link>
		<dc:creator>lakshman</dc:creator>
		<pubDate>Wed, 02 Mar 2011 06:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/sharesend/#comment-94</guid>
		<description>:) I created a similar app sometime back http://fileshare.rubyinair.com</description>
		<content:encoded><![CDATA[<p> <img src='http://jigyasamakkar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I created a similar app sometime back <a href="http://fileshare.rubyinair.com" rel="nofollow">http://fileshare.rubyinair.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dynamic is_ ? methods for boolean attributes of a  model by Pratik</title>
		<link>http://jigyasamakkar.com/dynamic-is_-methods-for-boolean-attributes-of-a-model/comment-page-1/#comment-93</link>
		<dc:creator>Pratik</dc:creator>
		<pubDate>Mon, 31 Jan 2011 16:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=214#comment-93</guid>
		<description>Also, AR already defines &#039;?&#039; attribute helpers. i.e available?, blocked? etc.</description>
		<content:encoded><![CDATA[<p>Also, AR already defines &#8216;?&#8217; attribute helpers. i.e available?, blocked? etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dynamic is_ ? methods for boolean attributes of a  model by Pratik</title>
		<link>http://jigyasamakkar.com/dynamic-is_-methods-for-boolean-attributes-of-a-model/comment-page-1/#comment-92</link>
		<dc:creator>Pratik</dc:creator>
		<pubDate>Mon, 31 Jan 2011 16:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=214#comment-92</guid>
		<description>Rails&#039; attribute helper methods should help in this case.


class User
  attribute_method_affix  :prefix =&gt; &#039;is_&#039;, :suffix =&gt; &#039;?&#039;

  private

  def is_attribute?(attribute)
    send(attribute).present?
  end
end
</description>
		<content:encoded><![CDATA[<p>Rails&#8217; attribute helper methods should help in this case.</p>
<p>class User<br />
  attribute_method_affix  :prefix =&gt; &#8216;is_&#8217;, :suffix =&gt; &#8216;?&#8217;</p>
<p>  private</p>
<p>  def is_attribute?(attribute)<br />
    send(attribute).present?<br />
  end<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dynamic is_ ? methods for boolean attributes of a  model by shanghai escort</title>
		<link>http://jigyasamakkar.com/dynamic-is_-methods-for-boolean-attributes-of-a-model/comment-page-1/#comment-78</link>
		<dc:creator>shanghai escort</dc:creator>
		<pubDate>Mon, 06 Sep 2010 05:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://jigyasamakkar.com/?p=214#comment-78</guid>
		<description>great article, i just finished bookmarking it to regularly check it. i’d love to revisit on new articles. how do i set the RSS again? thanks!</description>
		<content:encoded><![CDATA[<p>great article, i just finished bookmarking it to regularly check it. i’d love to revisit on new articles. how do i set the RSS again? thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

