<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Figuring Shit Out &#187; rails</title>
	<atom:link href="http://blog.figuringshitout.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.figuringshitout.com</link>
	<description>Ideas, thoughts and my attempts to figure shit out</description>
	<lastBuildDate>Wed, 25 Jan 2012 23:13:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Windows, Rails 2.2+, InstantRails &amp; MySQL: bundled mysql.rb driver error</title>
		<link>http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/</link>
		<comments>http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 00:25:05 +0000</pubDate>
		<dc:creator>Hang</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.bumblebeelabs.com/?p=628</guid>
		<description><![CDATA[If you get the error: !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! Here&#8217;s what happened. Windows, InstantRails &#38; Rails 2.2+ will not work out of the box gem install mysql will successfully install the gem but then silently [...]


Related posts:<ol><li><a href='http://blog.figuringshitout.com/rails-without-rails/' rel='bookmark' title='Rails without Rails'>Rails without Rails</a></li>
<li><a href='http://blog.figuringshitout.com/rails-20-swfupload-restful-authentication/' rel='bookmark' title='Rails 2.0 + SWFUpload + RESTful authentication'>Rails 2.0 + SWFUpload + RESTful authentication</a></li>
<li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you get the error:</p>
<blockquote><p>!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please<br />
install the mysql gem and try again: gem install mysql.<br />
rake aborted!</p></blockquote>
<p>Here&#8217;s what happened.</p>
<p>Windows, InstantRails &amp; Rails 2.2+ will not work out of the box</p>
<p>gem install mysql will successfully install the gem but then silently fail if the gem cannot find MySQL. Because InstantRails is designed to install cleanly, it doesn&#8217;t modify your path and so gems cannot find the MySQL path. To fix this, go to Control Panel-&gt;System-&gt;Advanced System Settings-&gt;Environment Variables-&gt;Path and add C:InstantRailsmysqlbin &amp; C:InstantRailsrubybin to the path. Restart everything that can be restarted and try again.</p>
<p>Windows, Ruby, MySQL 5.1 &amp; Rails 2.2+ will not work out of the box.</p>
<p>Install MySQL 5.0 instead.</p>
<p>either of these should fix the problem.</p>


<p>Related posts:<ol><li><a href='http://blog.figuringshitout.com/rails-without-rails/' rel='bookmark' title='Rails without Rails'>Rails without Rails</a></li>
<li><a href='http://blog.figuringshitout.com/rails-20-swfupload-restful-authentication/' rel='bookmark' title='Rails 2.0 + SWFUpload + RESTful authentication'>Rails 2.0 + SWFUpload + RESTful authentication</a></li>
<li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails without Rails</title>
		<link>http://blog.figuringshitout.com/rails-without-rails/</link>
		<comments>http://blog.figuringshitout.com/rails-without-rails/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 11:47:00 +0000</pubDate>
		<dc:creator>Hang</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.bumblebeelabs.com/?p=501</guid>
		<description><![CDATA[After working for a while on my first non-web based ruby project, I&#8217;ve tried to integrate nicely with a number of different components which I was already familiar with within the rails environment like ActiveRecord. Having struggled a bit with the pure approach, I wouldn&#8217;t reccomend it. Instead, what I&#8217;m doing is just spinning up [...]


Related posts:<ol><li><a href='http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/' rel='bookmark' title='Windows, Rails 2.2+, InstantRails &amp; MySQL: bundled mysql.rb driver error'>Windows, Rails 2.2+, InstantRails &#038; MySQL: bundled mysql.rb driver error</a></li>
<li><a href='http://blog.figuringshitout.com/rails-20-swfupload-restful-authentication/' rel='bookmark' title='Rails 2.0 + SWFUpload + RESTful authentication'>Rails 2.0 + SWFUpload + RESTful authentication</a></li>
<li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After working for a while on my first non-web based ruby project, I&#8217;ve tried to integrate nicely with a number of different components which I was already familiar with within the rails environment like ActiveRecord. Having struggled a bit with the <a href="http://rails.aizatto.com/2007/05/21/activerecord-without-rails/">pure</a> <a href="http://rails.aizatto.com/2007/05/27/activerecord-migrations-without-rails/">approach</a>, I wouldn&#8217;t reccomend it.</p>
<p>Instead, what I&#8217;m doing is just spinning up an empty rails instance and just ignoring all the web based stuff. That is, I&#8217;m not spinning up a passenger instance, my app folder is empty but I can still access everything else inside Rails like:</p>
<ul>
<li>ActiveRecord</li>
<li>Migrations and rake tasks</li>
<li>ruby script/console so I can interactively poke at the db</li>
<li>ruby script/runner to spin up my server</li>
<li>All the rails based testing frameworks</li>
</ul>
<p>So even though it&#8217;s a bit more messy, it ends up saving a lot of hassle in the long run. So much for modular design huh?</p>


<p>Related posts:<ol><li><a href='http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/' rel='bookmark' title='Windows, Rails 2.2+, InstantRails &amp; MySQL: bundled mysql.rb driver error'>Windows, Rails 2.2+, InstantRails &#038; MySQL: bundled mysql.rb driver error</a></li>
<li><a href='http://blog.figuringshitout.com/rails-20-swfupload-restful-authentication/' rel='bookmark' title='Rails 2.0 + SWFUpload + RESTful authentication'>Rails 2.0 + SWFUpload + RESTful authentication</a></li>
<li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.figuringshitout.com/rails-without-rails/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Oct 19th (day 7): Rails Rumble done</title>
		<link>http://blog.figuringshitout.com/rails-rumble-done/</link>
		<comments>http://blog.figuringshitout.com/rails-rumble-done/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 01:33:18 +0000</pubDate>
		<dc:creator>Hang</dc:creator>
				<category><![CDATA[Bumblebee Labs Main Blog]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[30 day experiment]]></category>
		<category><![CDATA[dontsendit]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.bumblebeelabs.com/?p=198</guid>
		<description><![CDATA[Discovered a rather unpleasant surprise. I assumed Rails Rumble was ending at midnight PDT, turns out it was actually midnight GMT which meant we were scrambling over the last 8 hours to get everything done. Anyway, a somewhat function version of the site is up at: http://dontsendit.r08.railsrumble.com/ Site is definately very barebones and lacking in [...]


Related posts:<ol><li><a href='http://blog.figuringshitout.com/conceptualising-dontsendit/' rel='bookmark' title='Oct 18th (day 6): Conceptualising dontsendit'>Oct 18th (day 6): Conceptualising dontsendit</a></li>
<li><a href='http://blog.figuringshitout.com/rails-without-rails/' rel='bookmark' title='Rails without Rails'>Rails without Rails</a></li>
<li><a href='http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/' rel='bookmark' title='Windows, Rails 2.2+, InstantRails &amp; MySQL: bundled mysql.rb driver error'>Windows, Rails 2.2+, InstantRails &#038; MySQL: bundled mysql.rb driver error</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Discovered a rather unpleasant surprise. I assumed Rails Rumble was ending at midnight PDT, turns out it was actually midnight GMT which meant we were scrambling over the last 8 hours to get everything done. Anyway, a somewhat function version of the site is up at:</p>
<p><a href="http://dontsendit.r08.railsrumble.com/">http://dontsendit.r08.railsrumble.com/</a></p>
<p>Site is definately very barebones and lacking in decent design/features at the moment.</p>


<p>Related posts:<ol><li><a href='http://blog.figuringshitout.com/conceptualising-dontsendit/' rel='bookmark' title='Oct 18th (day 6): Conceptualising dontsendit'>Oct 18th (day 6): Conceptualising dontsendit</a></li>
<li><a href='http://blog.figuringshitout.com/rails-without-rails/' rel='bookmark' title='Rails without Rails'>Rails without Rails</a></li>
<li><a href='http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/' rel='bookmark' title='Windows, Rails 2.2+, InstantRails &amp; MySQL: bundled mysql.rb driver error'>Windows, Rails 2.2+, InstantRails &#038; MySQL: bundled mysql.rb driver error</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.figuringshitout.com/rails-rumble-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oct 18th (day 6): Conceptualising dontsendit</title>
		<link>http://blog.figuringshitout.com/conceptualising-dontsendit/</link>
		<comments>http://blog.figuringshitout.com/conceptualising-dontsendit/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 05:08:20 +0000</pubDate>
		<dc:creator>Hang</dc:creator>
				<category><![CDATA[Bumblebee Labs Main Blog]]></category>
		<category><![CDATA[30 day experiment]]></category>
		<category><![CDATA[dontsendit]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.bumblebeelabs.com/?p=196</guid>
		<description><![CDATA[We&#8217;re spending the weekend at bumblebeelabs working on a project called dontsendit as part of the Rails Rumble. The concept of dontsendit is very simple: what if we could write emails and set conditions so that they are sent only if you fail to do something? How would that change the dynamics and nuance of [...]


Related posts:<ol><li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re spending the weekend at bumblebeelabs working on a project called <a href="http://www.dontsendit.com/">dontsendit</a> as part of the <a href="http://railsrumble.com/">Rails Rumble</a>. The concept of dontsendit is very simple: what if we could write emails and set conditions so that they are sent only if you fail to do something? How would that change the dynamics and nuance of email?</p>
<p>As a concept, dontsendit is fairly technically trivial. There&#8217;s only 3 major pages and it shouldn&#8217;t take more than a few lines of code. Where the real challenge has been for us is that, while it&#8217;s easy for us to tell people how it works, it&#8217;s been tough to explain what it can do for them. There&#8217;s a major cognitive leap from &#8220;I have a problem&#8221; to &#8220;dontsendit is the perfect solution for it&#8221; and practically noone can make that leap unaided.</p>
<p>The problem is, dontsendit could be used for potentially quite a number of different things. Some of them more compelling than others. One of the tricky design arguments we&#8217;ve been having is whether to go for general but bland (aka: the swiss army knife approach) or specific but opinionated (the scalpel approach). There&#8217;s much to be said for both sides which is what makes it a perennial topic for debate but my gut instinct is that general but bland sounds seductive at first but will ultimately fail.</p>
<p>Anyway, keep an eye out for dontsendit.com, the final version should be launching by midnight tomorrow. I wouldn&#8217;t try testing it before then unless you want your emails to be publically viewable. It&#8217;s still very much a work in progress.</p>


<p>Related posts:<ol><li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.figuringshitout.com/conceptualising-dontsendit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 2.0 + SWFUpload + RESTful authentication</title>
		<link>http://blog.figuringshitout.com/rails-20-swfupload-restful-authentication/</link>
		<comments>http://blog.figuringshitout.com/rails-20-swfupload-restful-authentication/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 10:20:40 +0000</pubDate>
		<dc:creator>Hang</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.bumblebeelabs.com/?p=152</guid>
		<description><![CDATA[Just a note on changes in Rails 2.0 which messes up a couple of tutorials on getting SWFUpload working with restful authentication. The gist of it is that Flash cannot send cookie data so if you&#8217;re using a cookie based authentication mechanism, it will fail. The solution is to insert the session id into the [...]


Related posts:<ol><li><a href='http://blog.figuringshitout.com/rails-without-rails/' rel='bookmark' title='Rails without Rails'>Rails without Rails</a></li>
<li><a href='http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/' rel='bookmark' title='Windows, Rails 2.2+, InstantRails &amp; MySQL: bundled mysql.rb driver error'>Windows, Rails 2.2+, InstantRails &#038; MySQL: bundled mysql.rb driver error</a></li>
<li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Just a note on changes in Rails 2.0 which messes up a couple of tutorials on getting SWFUpload working with restful authentication.</p>
<p>The gist of it is that <a href="http://blog.inquirylabs.com/2006/12/09/getting-the-_session_id-from-swfupload/">Flash cannot send cookie data</a> so if you&#8217;re using a cookie based authentication mechanism, it will fail. The solution is to insert the session id into the query string and then <a href="http://pastie.org/pastes/252587/edit">hack CGI::Session</a> to set the session id. A lot of tutorials have you insert this snippet into either environment.rb or lib/ but this no longer works with Rails 2.0+. Instead, you need to put it in the config/initializers folder.</p>
<p>Knowing that would have saved me about 5 hours worth of frustration.</p>


<p>Related posts:<ol><li><a href='http://blog.figuringshitout.com/rails-without-rails/' rel='bookmark' title='Rails without Rails'>Rails without Rails</a></li>
<li><a href='http://blog.figuringshitout.com/windows-rails-22-instantrails-mysql-bundled-mysqlrb-driver-error/' rel='bookmark' title='Windows, Rails 2.2+, InstantRails &amp; MySQL: bundled mysql.rb driver error'>Windows, Rails 2.2+, InstantRails &#038; MySQL: bundled mysql.rb driver error</a></li>
<li><a href='http://blog.figuringshitout.com/rails-rumble-done/' rel='bookmark' title='Oct 19th (day 7): Rails Rumble done'>Oct 19th (day 7): Rails Rumble done</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.figuringshitout.com/rails-20-swfupload-restful-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

