<?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"
	>
<channel>
	<title>Comments for Erik on Rails</title>
	<atom:link href="http://erikonrails.snowedin.net/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://erikonrails.snowedin.net</link>
	<description>One developer’s experiences learning Ruby on Rails</description>
	<pubDate>Thu, 23 May 2013 19:34:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>Comment on env: ruby_bundler_wrapper: No such file or directory by Jon Moter</title>
		<link>http://erikonrails.snowedin.net/?p=478#comment-42669</link>
		<dc:creator>Jon Moter</dc:creator>
		<pubDate>Mon, 14 Jan 2013 23:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=478#comment-42669</guid>
		<description>Check to see whether those commands have been aliased by your shell.  I run zsh with oh-my-zsh, and it provides aliases for ruby commands, so they're automatically run with bundler.

$ which ruby                                                                                                              ruby: aliased to bundled_ruby
$ which bundled_ruby                                                                                                      bundled_ruby () {
	_run-with-bundler ruby $@
}

You might have something similar going on with your dotfiles.</description>
		<content:encoded><![CDATA[<p>Check to see whether those commands have been aliased by your shell.  I run zsh with oh-my-zsh, and it provides aliases for ruby commands, so they&#8217;re automatically run with bundler.</p>
<p>$ which ruby                                                                                                              ruby: aliased to bundled_ruby<br />
$ which bundled_ruby                                                                                                      bundled_ruby () {<br />
	_run-with-bundler ruby $@<br />
}</p>
<p>You might have something similar going on with your dotfiles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom rspec matcher for Delayed::Job performable methods by Naveed</title>
		<link>http://erikonrails.snowedin.net/?p=440#comment-41930</link>
		<dc:creator>Naveed</dc:creator>
		<pubDate>Fri, 28 Dec 2012 13:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=440#comment-41930</guid>
		<description>brilliant idea! I &#60;3 this approach thanks</description>
		<content:encoded><![CDATA[<p>brilliant idea! I &lt;3 this approach thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Importing CSV values into ActiveRecord tables by Lauralee</title>
		<link>http://erikonrails.snowedin.net/?p=212#comment-41588</link>
		<dc:creator>Lauralee</dc:creator>
		<pubDate>Thu, 20 Dec 2012 12:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=212#comment-41588</guid>
		<description>I worked on this for hours and hours one day.  I finally got it to work by doing the following:

 1. Added a header in the first row to my csv file that reflected the attr_accessible in my model.  In my case my model was attr_accessible :intro, :name and in my csv file the first line read name, intro.  
 2. Created a custom rake file.  I named mine import.rake and placed it in the lib/tasks folder.  Place this code in that file:

&#62;     #lib/tasks/import.rake
&#62;     require 'csv'
&#62;     desc "Imports a CSV file into an ActiveRecord table"
&#62;     task :import, [:filename] =&#62; :environment do    
&#62;         CSV.foreach('myfile.csv', :headers =&#62; true) do &#124;row&#124;
&#62; 	        MyModel.create!(row.to_hash)
&#62;         end
&#62;     end

Then type `bundle exec rake import` into the command line.  

To get this to work I had quite SQLite Database Browser.  I hope that helps someone!</description>
		<content:encoded><![CDATA[<p>I worked on this for hours and hours one day.  I finally got it to work by doing the following:</p>
<p> 1. Added a header in the first row to my csv file that reflected the attr_accessible in my model.  In my case my model was attr_accessible :intro, :name and in my csv file the first line read name, intro.<br />
 2. Created a custom rake file.  I named mine import.rake and placed it in the lib/tasks folder.  Place this code in that file:</p>
<p>&gt;     #lib/tasks/import.rake<br />
&gt;     require &#8216;csv&#8217;<br />
&gt;     desc &#8220;Imports a CSV file into an ActiveRecord table&#8221;<br />
&gt;     task :import, [:filename] =&gt; :environment do<br />
&gt;         CSV.foreach(&#8217;myfile.csv&#8217;, :headers =&gt; true) do |row|<br />
&gt; 	        MyModel.create!(row.to_hash)<br />
&gt;         end<br />
&gt;     end</p>
<p>Then type `bundle exec rake import` into the command line.  </p>
<p>To get this to work I had quite SQLite Database Browser.  I hope that helps someone!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom error pages in Rails (with Exceptional support) by tight</title>
		<link>http://erikonrails.snowedin.net/?p=251#comment-41423</link>
		<dc:creator>tight</dc:creator>
		<pubDate>Mon, 17 Dec 2012 15:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=251#comment-41423</guid>
		<description>Calling Execeptional#handle doesn't save query parameters, session, referer and user agent informations.
You should use Exceptional::Catcher.handle_with_controller(exception, self, request) instead</description>
		<content:encoded><![CDATA[<p>Calling Execeptional#handle doesn&#8217;t save query parameters, session, referer and user agent informations.<br />
You should use Exceptional::Catcher.handle_with_controller(exception, self, request) instead</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Strip leading zeros in string formatting by Loran</title>
		<link>http://erikonrails.snowedin.net/?p=171#comment-41325</link>
		<dc:creator>Loran</dc:creator>
		<pubDate>Sat, 15 Dec 2012 08:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=171#comment-41325</guid>
		<description>Amazingly simple, I love it! thanks!</description>
		<content:encoded><![CDATA[<p>Amazingly simple, I love it! thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Importing CSV values into ActiveRecord tables by Justin</title>
		<link>http://erikonrails.snowedin.net/?p=212#comment-39811</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 12 Nov 2012 22:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=212#comment-39811</guid>
		<description>Love that impressively short script!</description>
		<content:encoded><![CDATA[<p>Love that impressively short script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on env: ruby_bundler_wrapper: No such file or directory by Lewis Flude</title>
		<link>http://erikonrails.snowedin.net/?p=478#comment-37850</link>
		<dc:creator>Lewis Flude</dc:creator>
		<pubDate>Sat, 29 Sep 2012 14:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=478#comment-37850</guid>
		<description>Hey there. When I try this I get a message telling me that regenerate is not a valid command line argument.

Unrecognized command line argument: 'regenerate' ( see: 'rvm usage' )

Just wondering if you knew a workaround...

Thanks,

Lewis</description>
		<content:encoded><![CDATA[<p>Hey there. When I try this I get a message telling me that regenerate is not a valid command line argument.</p>
<p>Unrecognized command line argument: &#8216;regenerate&#8217; ( see: &#8216;rvm usage&#8217; )</p>
<p>Just wondering if you knew a workaround&#8230;</p>
<p>Thanks,</p>
<p>Lewis</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Importing CSV values into ActiveRecord tables by Pywackt</title>
		<link>http://erikonrails.snowedin.net/?p=212#comment-37115</link>
		<dc:creator>Pywackt</dc:creator>
		<pubDate>Thu, 13 Sep 2012 07:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=212#comment-37115</guid>
		<description>Bunnies!</description>
		<content:encoded><![CDATA[<p>Bunnies!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting objects from a has_many association by Nikki</title>
		<link>http://erikonrails.snowedin.net/?p=240#comment-36589</link>
		<dc:creator>Nikki</dc:creator>
		<pubDate>Fri, 31 Aug 2012 03:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=240#comment-36589</guid>
		<description>Helped me again, thanks!</description>
		<content:encoded><![CDATA[<p>Helped me again, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Importing CSV values into ActiveRecord tables by Deepak</title>
		<link>http://erikonrails.snowedin.net/?p=212#comment-36450</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Sun, 26 Aug 2012 17:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://erikonrails.snowedin.net/?p=212#comment-36450</guid>
		<description>Worked perfectly..
Thanks</description>
		<content:encoded><![CDATA[<p>Worked perfectly..<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
