<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>Roamings of a Hobbyist Ruby on Rails Developer</title>
	<link>http://www.blog.gregnet.org</link>
	<description>My running list of Rails gottcha's that got me!</description>
	<lastBuildDate>Sat, 28 Mar 2009 05:21:18 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.0.1" -->

	<item>
		<title>capistrano gets &#8220;failed password&#8221; when accessing git repository server</title>
		<description><![CDATA[Hi, This one concerns using capistrano for Rails deployment, and git for version control. I got stuck for quite some time on this. PROBLEM: I could ssh into my target prod server, and from there ssh into my repo server (for git) fine. When I run &#8220;cap deploy:update&#8221; it seems when the capistrano scripts running [...]]]></description>
		<link>http://www.blog.gregnet.org/?p=39</link>
			</item>
	<item>
		<title>running test coverage (rcov) and displaying results in one hit</title>
		<description><![CDATA[Reminder re how to run &#8220;rcov&#8221; for code coverage, and display the results in a browser in one hit. Solution: rake spec:rcov &#038;&#038; open coverage/index.html]]></description>
		<link>http://www.blog.gregnet.org/?p=35</link>
			</item>
	<item>
		<title>undefined method errors in test specs!  but works fine in ./script/console???</title>
		<description><![CDATA[Had an issue trying to resolve the following error I was getting in one of my test specs (i.e. RSpec tests) recently: undefined method `account_item_id=' for # When I did the same thing the test spec was doing in the rails console (i.e. ./script/console) things worked fine. Couldn&#8217;t work it out. Solution: You may have [...]]]></description>
		<link>http://www.blog.gregnet.org/?p=31</link>
			</item>
	<item>
		<title>recursive &#8220;svn add&#8221; approach</title>
		<description><![CDATA[Not being an SVN (subversion) guru I wanted to find a way to recursively add files (svn add) to put them under version control. Solution: Here&#8217;s the solution (updated from Paul&#8217;s suggestion below): “svn add * –force” This will recursively add new files and skip any files that are already in svn. The original solution [...]]]></description>
		<link>http://www.blog.gregnet.org/?p=29</link>
			</item>
	<item>
		<title>&#8220;save!&#8221; not working (nothing persisted to DB) but return result is &#8220;nil&#8221; rather than an error message</title>
		<description><![CDATA[I recently was stuck trying to work out why a &#8220;save!&#8221; on one of my models was not working. I had checked and verified that the model object was valid first. I checked the database directly and there were definitely no record being saved. Console Output Highlight the Issue &#62;&#62; a = Allocation.new =&#62; #&#60;Allocation [...]]]></description>
		<link>http://www.blog.gregnet.org/?p=17</link>
			</item>
	<item>
		<title>viewing SQL statements when using the rails console</title>
		<description><![CDATA[Ever wanted to view the SQL statements being issued to your database when you are in the Rails console (i.e. ./script/console), i.e. in development mode. I posted on the mailing list and got one way forward here. Solution: Run up a server in a separate terminal to view the SQL statements (i.e. ./script/server). They appear [...]]]></description>
		<link>http://www.blog.gregnet.org/?p=15</link>
			</item>
	<item>
		<title>No such file or directory &#8211; /tmp/mysql.sock</title>
		<description><![CDATA[I spent 15 minutes recently trying to work out why I was getting this error when I was trying to run a migration on my production site: [root@home current]# rake db:migrate VERSION=production (in /u/apps/myequity/releases/20081206042650) rake aborted! No such file or directory - /tmp/mysql.sock (See full trace by running task with --trace) Do you see the [...]]]></description>
		<link>http://www.blog.gregnet.org/?p=9</link>
			</item>
	<item>
		<title>Introduction</title>
		<description><![CDATA[Hi, This blog captures the learnings of a hobbyist Ruby on Rails developer as he stumbles through the word of web development.   Hopefully someone might even learn something&#8230;]]></description>
		<link>http://www.blog.gregnet.org/?p=3</link>
			</item>
</channel>
</rss>
