<?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 Brijesh Shah Blog</title>
	<atom:link href="http://blog.brijeshshah.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.brijeshshah.com</link>
	<description>About Open Source</description>
	<lastBuildDate>Wed, 14 Dec 2011 13:22:39 +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 Export to Excel in Ruby on Rails by Reva</title>
		<link>http://blog.brijeshshah.com/export-to-excel-in-ruby-on-rails/comment-page-1/#comment-3754</link>
		<dc:creator>Reva</dc:creator>
		<pubDate>Wed, 14 Dec 2011 13:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=10#comment-3754</guid>
		<description>Hi Brijesh.
 Thanks. I could overcome the error with your suggestion. i can open the export.html page successfully. when I click the link, it stays on the same page. where does the report.xls get generated? I m using IE7.</description>
		<content:encoded><![CDATA[<p>Hi Brijesh.<br />
 Thanks. I could overcome the error with your suggestion. i can open the export.html page successfully. when I click the link, it stays on the same page. where does the report.xls get generated? I m using IE7.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Export to Excel in Ruby on Rails by Brijesh shah</title>
		<link>http://blog.brijeshshah.com/export-to-excel-in-ruby-on-rails/comment-page-1/#comment-3753</link>
		<dc:creator>Brijesh shah</dc:creator>
		<pubDate>Wed, 14 Dec 2011 12:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=10#comment-3753</guid>
		<description>Hi

set route as below:
[code]
match &quot;export&quot; =&gt; &quot;abcs#export&quot; ,:as =&gt; :export_abcs
[/code]
or u can add in abcs resources if u had defined

like 
[code]
map.resources :abcs  do 
 
collection do
  get :export
end

end
[/code]</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>set route as below:</p>
<pre class="brush: plain; title: ; notranslate">
match &quot;export&quot; =&gt; &quot;abcs#export&quot; ,:as =&gt; :export_abcs
</pre>
<p>or u can add in abcs resources if u had defined</p>
<p>like </p>
<pre class="brush: plain; title: ; notranslate">
map.resources :abcs  do 

collection do
  get :export
end

end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Export to Excel in Ruby on Rails by Reva</title>
		<link>http://blog.brijeshshah.com/export-to-excel-in-ruby-on-rails/comment-page-1/#comment-3752</link>
		<dc:creator>Reva</dc:creator>
		<pubDate>Wed, 14 Dec 2011 11:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=10#comment-3752</guid>
		<description>Hi Brijesh
I m new to rails.Im trying export the data in the table name abc to the excel sheet.My controller is abcs_controller.rb. Further shd i rename it as “export_abc_url”.shd i add post “/export_abc” to the routes. i m using rail3. i ve included in my routes. &quot;match &quot;export&quot; =&gt; &#039;abcs#export&#039; 
resources :abcs&quot; Kindly do help</description>
		<content:encoded><![CDATA[<p>Hi Brijesh<br />
I m new to rails.Im trying export the data in the table name abc to the excel sheet.My controller is abcs_controller.rb. Further shd i rename it as “export_abc_url”.shd i add post “/export_abc” to the routes. i m using rail3. i ve included in my routes. &#8220;match &#8220;export&#8221; =&gt; &#8216;abcs#export&#8217;<br />
resources :abcs&#8221; Kindly do help</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Export to Excel in Ruby on Rails by Reva</title>
		<link>http://blog.brijeshshah.com/export-to-excel-in-ruby-on-rails/comment-page-1/#comment-3751</link>
		<dc:creator>Reva</dc:creator>
		<pubDate>Wed, 14 Dec 2011 09:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=10#comment-3751</guid>
		<description>Hi Brijesh
I m new to rails.Im trying export the data in the table name abc to the excel sheet.My controller is abcs_controller.rb. Further shd i rename it as &quot;export_abc_url&quot;.shd i add post &quot;/export_abc&quot; to the routes. Kindly do help</description>
		<content:encoded><![CDATA[<p>Hi Brijesh<br />
I m new to rails.Im trying export the data in the table name abc to the excel sheet.My controller is abcs_controller.rb. Further shd i rename it as &#8220;export_abc_url&#8221;.shd i add post &#8220;/export_abc&#8221; to the routes. Kindly do help</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Export to Excel in Ruby on Rails by Brijesh shah</title>
		<link>http://blog.brijeshshah.com/export-to-excel-in-ruby-on-rails/comment-page-1/#comment-3750</link>
		<dc:creator>Brijesh shah</dc:creator>
		<pubDate>Wed, 14 Dec 2011 08:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=10#comment-3750</guid>
		<description>Hi

You need to define url in routes.rb set url according to your controller and action.

Thanks
Brijesh Shah</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>You need to define url in routes.rb set url according to your controller and action.</p>
<p>Thanks<br />
Brijesh Shah</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Export to Excel in Ruby on Rails by Reva</title>
		<link>http://blog.brijeshshah.com/export-to-excel-in-ruby-on-rails/comment-page-1/#comment-3749</link>
		<dc:creator>Reva</dc:creator>
		<pubDate>Wed, 14 Dec 2011 07:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=10#comment-3749</guid>
		<description>when i m using this code, it shows an error of
“undefined local variable or method `export_person_url’ for ” can u please suggest a solution.</description>
		<content:encoded><![CDATA[<p>when i m using this code, it shows an error of<br />
“undefined local variable or method `export_person_url’ for ” can u please suggest a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Export to Excel in Ruby on Rails by Reva</title>
		<link>http://blog.brijeshshah.com/export-to-excel-in-ruby-on-rails/comment-page-1/#comment-3748</link>
		<dc:creator>Reva</dc:creator>
		<pubDate>Wed, 14 Dec 2011 07:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=10#comment-3748</guid>
		<description>hi 
when i m using this code, it shows an error of 
&quot;undefined local variable or method `export_person_url&#039; for &quot; can u please suggest a solution.</description>
		<content:encoded><![CDATA[<p>hi<br />
when i m using this code, it shows an error of<br />
&#8220;undefined local variable or method `export_person_url&#8217; for &#8221; can u please suggest a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Passing data from child window to parent window by ratheesh</title>
		<link>http://blog.brijeshshah.com/passing-data-from-child-window-to-parent-window/comment-page-1/#comment-3747</link>
		<dc:creator>ratheesh</dc:creator>
		<pubDate>Sat, 10 Dec 2011 19:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=174#comment-3747</guid>
		<description>Im opening a child window and am returning the value from child to parent . I would also want to process that value in the parent , i use the location.href to refresh the parent page from the child by which i lose the value on page load . Is there any work around this other than sessions or __doPostBack ?</description>
		<content:encoded><![CDATA[<p>Im opening a child window and am returning the value from child to parent . I would also want to process that value in the parent , i use the location.href to refresh the parent page from the child by which i lose the value on page load . Is there any work around this other than sessions or __doPostBack ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Passing data from child window to parent window by ratheesh</title>
		<link>http://blog.brijeshshah.com/passing-data-from-child-window-to-parent-window/comment-page-1/#comment-3746</link>
		<dc:creator>ratheesh</dc:creator>
		<pubDate>Sat, 10 Dec 2011 19:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=174#comment-3746</guid>
		<description>Im opening a child window and am returning the value from child to parent . I also want to process that value in the parent , i use the location.href to refresh the parent page from the child by which i lose the value on page load . Is there any work around this other than sessions or __doPostBack</description>
		<content:encoded><![CDATA[<p>Im opening a child window and am returning the value from child to parent . I also want to process that value in the parent , i use the location.href to refresh the parent page from the child by which i lose the value on page load . Is there any work around this other than sessions or __doPostBack</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Maps in rails 3 by Rob</title>
		<link>http://blog.brijeshshah.com/google-maps-in-rails-3/comment-page-1/#comment-3745</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 07 Dec 2011 21:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brijeshshah.com/?p=475#comment-3745</guid>
		<description>RAILS_ROOT is now Rails.root. See http://quaran.to/blog/2010/02/03/the-rails-module/

My fix for key.rb is below. You can&#039;t just search/replace RAILS_ROOT (or RAILS_ENV) because it&#039;s a Pathname now. Try these in the console:
Rails.root + &#039;/config/file.yml&#039;
&quot;#{Rails.root}/config/file.yml&quot;
Rails.root.join(&#039;config&#039;,&#039;file.yml&#039;)

--

diff --git a/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb b/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb
index e4de97b..50aff28 100644
--- a/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb
+++ b/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb
@@ -9,11 +9,11 @@ module Ym4r
     #Class fo the manipulation of the API key
     class ApiKey
       #Read the API key config for the current ENV
-      unless File.exist?(RAILS_ROOT + &#039;/config/gmaps_api_key.yml&#039;)
-        raise GMapsAPIKeyConfigFileNotFoundException.new(&quot;File RAILS_ROOT/config/gmaps_api_key.yml not found&quot;)
+      unless File.exist?(&quot;#{Rails.root}/config/gmaps_api_key.yml&quot;)
+        raise GMapsAPIKeyConfigFileNotFoundException.new(&quot;File Rails.root/config/gmaps_api_key.yml not found&quot;)
       else
-        env = ENV[&#039;RAILS_ENV&#039;] &#124;&#124; RAILS_ENV
-        GMAPS_API_KEY = YAML.load_file(RAILS_ROOT + &#039;/config/gmaps_api_key.yml&#039;)[env]
+        env = ENV[&#039;RAILS_ENV&#039;] &#124;&#124; Rails.env
+        GMAPS_API_KEY = YAML.load_file(&quot;#{Rails.root}/config/gmaps_api_key.yml&quot;)[env]
       end

       def self.get(options = {})</description>
		<content:encoded><![CDATA[<p>RAILS_ROOT is now Rails.root. See <a href="http://quaran.to/blog/2010/02/03/the-rails-module/" rel="nofollow">http://quaran.to/blog/2010/02/03/the-rails-module/</a></p>
<p>My fix for key.rb is below. You can&#8217;t just search/replace RAILS_ROOT (or RAILS_ENV) because it&#8217;s a Pathname now. Try these in the console:<br />
Rails.root + &#8216;/config/file.yml&#8217;<br />
&#8220;#{Rails.root}/config/file.yml&#8221;<br />
Rails.root.join(&#8216;config&#8217;,'file.yml&#8217;)</p>
<p>&#8211;</p>
<p>diff &#8211;git a/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb b/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb<br />
index e4de97b..50aff28 100644<br />
&#8212; a/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb<br />
+++ b/vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb<br />
@@ -9,11 +9,11 @@ module Ym4r<br />
     #Class fo the manipulation of the API key<br />
     class ApiKey<br />
       #Read the API key config for the current ENV<br />
-      unless File.exist?(RAILS_ROOT + &#8216;/config/gmaps_api_key.yml&#8217;)<br />
-        raise GMapsAPIKeyConfigFileNotFoundException.new(&#8220;File RAILS_ROOT/config/gmaps_api_key.yml not found&#8221;)<br />
+      unless File.exist?(&#8220;#{Rails.root}/config/gmaps_api_key.yml&#8221;)<br />
+        raise GMapsAPIKeyConfigFileNotFoundException.new(&#8220;File Rails.root/config/gmaps_api_key.yml not found&#8221;)<br />
       else<br />
-        env = ENV['RAILS_ENV'] || RAILS_ENV<br />
-        GMAPS_API_KEY = YAML.load_file(RAILS_ROOT + &#8216;/config/gmaps_api_key.yml&#8217;)[env]<br />
+        env = ENV['RAILS_ENV'] || Rails.env<br />
+        GMAPS_API_KEY = YAML.load_file(&#8220;#{Rails.root}/config/gmaps_api_key.yml&#8221;)[env]<br />
       end</p>
<p>       def self.get(options = {})</p>
]]></content:encoded>
	</item>
</channel>
</rss>

