<?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>databasically // Kansas City Small Business IT &#38;&#38; Ruby on Rails Programming &#187; Ruby on Rails</title>
	<atom:link href="http://databasically.com/category/blog/programming/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://databasically.com</link>
	<description>Kansas City Small Business IT</description>
	<lastBuildDate>Tue, 20 Jul 2010 21:35:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Overriding Rails&#8217; automatic timestamps: updated_at &amp; created_at</title>
		<link>http://databasically.com/2010/07/05/overriding-rails-automatic-timestamps-updated_at-created_at/</link>
		<comments>http://databasically.com/2010/07/05/overriding-rails-automatic-timestamps-updated_at-created_at/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 03:15:55 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=342</guid>
		<description><![CDATA[When converting something in a project, I found that I needed to updated a field for every record in a Request table.  No problem, except this client grabs a SQL dump and run reports on it.  So, Rails&#8217; automatic timestamping of the updated_at field made all of the Requests look like they&#8217;d just [...]]]></description>
			<content:encoded><![CDATA[<p>When converting something in a project, I found that I needed to updated a field for every record in a Request table.  No problem, except this client grabs a SQL dump and run reports on it.  So, Rails&#8217; automatic timestamping of the updated_at field made all of the Requests look like they&#8217;d just been updated.  Which they had, but not by users.</p>
<p>So, this rake task will reset all of them, presuming you have something to set them to.  In my case, I found the latest comment date and used that, but you could figure it out some other way.</p>
<p><script src="http://gist.github.com/463959.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/07/05/overriding-rails-automatic-timestamps-updated_at-created_at/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jammit Warning: Asset compression disabled &#8212; Java unavailable (Mac/Apple)</title>
		<link>http://databasically.com/2010/05/10/jammit-warning-asset-compression-disabled-java-unavailable-macapple/</link>
		<comments>http://databasically.com/2010/05/10/jammit-warning-asset-compression-disabled-java-unavailable-macapple/#comments</comments>
		<pubDate>Mon, 10 May 2010 20:42:02 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=327</guid>
		<description><![CDATA[I set up Jammit locally on my Mac running Leopard and was receiving this error:

Jammit Warning: Asset compression disabled -- Java unavailable



I checked out Java:
&#62; java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125)
Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing)


Odd.  Poking into the jammit source, I saw that java 1.4 is [...]]]></description>
			<content:encoded><![CDATA[<p>I set up <a href="http://documentcloud.github.com/jammit/">Jammit</a> locally on my Mac running Leopard and was receiving this error:</p>
<blockquote>
<pre>Jammit Warning: Asset compression disabled -- Java unavailable
</pre>
</blockquote>
<p></p>
<p>I checked out Java:</p>
<pre>&gt; java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125)
Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing)
</pre>
<p>
<p>Odd.  Poking into the jammit source, I saw that java 1.4 is required to use the YUI javascript compressor, but I had selected the google closure compiler which requires java 1.6, hence the [unclear] error message.</p>
<p>On Leopard, if you&#8217;ve run all your System Updates, you probably have java 1.6, but you have to select it as the default:  Applications &gt; Utilities &gt; Java Preferences &gt; drag new version to top</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/05/10/jammit-warning-asset-compression-disabled-java-unavailable-macapple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kansas City Ruby Users: Luke Pillow on Jeweler</title>
		<link>http://databasically.com/2010/03/13/kansas-city-ruby-users-luke-pillow-on-jeweler/</link>
		<comments>http://databasically.com/2010/03/13/kansas-city-ruby-users-luke-pillow-on-jeweler/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 18:56:29 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Kansas City Ruby User Group]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=308</guid>
		<description><![CDATA[Luke Pillow present to the Kansas City Ruby Users Group on Jeweler and Gemcutter rubygems.org.
Also, Luke is helping to organize the Ruby Midwest conference, so you should check that out.


Kansas City Ruby Users Group &#124; March 2010 &#124; Luke Pillow &#124; Jeweler for Rubygems &#124; kcrug.org from Wes Garrison on Vimeo.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/lpillow">Luke Pillow</a> present to the Kansas City Ruby Users Group on Jeweler and <span style="text-decoration: line-through;">Gemcutter</span> rubygems.org.</p>
<p>Also, Luke is helping to organize the <a href="http://rubymidwest.com/">Ruby Midwest</a> conference, so you should check that out.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="375" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=10138426&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="500" height="375" src="http://vimeo.com/moogaloop.swf?clip_id=10138426&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</p>
<p><a href="http://vimeo.com/10138426">Kansas City Ruby Users Group | March 2010 | Luke Pillow | Jeweler for Rubygems | kcrug.org</a> from <a href="http://vimeo.com/wesgarrison">Wes Garrison</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/03/13/kansas-city-ruby-users-luke-pillow-on-jeweler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kansas City Ruby Users: Ryan Smith on Heroku</title>
		<link>http://databasically.com/2010/03/12/kansas-city-ruby-user-group-ryan-smith-on-heroku/</link>
		<comments>http://databasically.com/2010/03/12/kansas-city-ruby-user-group-ryan-smith-on-heroku/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:11:04 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Kansas City Ruby User Group]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=266</guid>
		<description><![CDATA[Ryan Smith presents to the Kansas City Ruby Users Group on Heroku: why it&#8217;s wonderful for deploying Ruby on Rails applications, how to set up a new application and deploy it to Heroku in minutes, and how to use Heroku add-ons to support search.


Kansas City Ruby Users Group &#124; March 2010 &#124; Ryan Smith &#124; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/ryandotsmith">Ryan Smith</a> presents to the Kansas City Ruby Users Group on <a href="http://heroku.com/">Heroku</a>: why it&#8217;s wonderful for deploying Ruby on Rails applications, how to set up a new application and deploy it to Heroku in minutes, and how to use Heroku add-ons to support search.</p>
<div style="text-align: center;padding-top:35px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="375" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=10104580&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="500" height="375" src="http://vimeo.com/moogaloop.swf?clip_id=10104580&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
</div>
<p><a href="http://vimeo.com/10104580">Kansas City Ruby Users Group | March 2010 | Ryan Smith | Heroku | kcrug.org</a> from <a href="http://vimeo.com/wesgarrison">Wes Garrison</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/03/12/kansas-city-ruby-user-group-ryan-smith-on-heroku/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing sqlite headers on ubuntu (sqlite3.h not found)</title>
		<link>http://databasically.com/2010/03/05/installing-sqlite-headers-on-ubuntu-sqlite3-h-not-found/</link>
		<comments>http://databasically.com/2010/03/05/installing-sqlite-headers-on-ubuntu-sqlite3-h-not-found/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 22:21:47 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=251</guid>
		<description><![CDATA[I was setting up Integrity for the first time and ran into this on my server when bundling gems:
~$ bundle install
...
Installing do_sqlite3 (0.10.0) from rubygems repository at
  http://gemcutter.org/ with native extensions
  /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:482:in
  `build_extensions':
ERROR: Failed to build gem native extension.
  (Gem::Installer::ExtensionBuildError)

/usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... no
*** extconf.rb failed ***
...

The key is the line: [...]]]></description>
			<content:encoded><![CDATA[<p>I was setting up <a href="http://integrityapp.com/">Integrity</a> for the first time and ran into this on my server when bundling gems:</p>
<pre name="code" class="ruby">~$ bundle install
...
Installing do_sqlite3 (0.10.0) from rubygems repository at
  http://gemcutter.org/ with native extensions
  /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:482:in
  `build_extensions':
ERROR: Failed to build gem native extension.
  (Gem::Installer::ExtensionBuildError)

/usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... no
*** extconf.rb failed ***
...
</pre>
<p>The key is the line: <code>checking for sqlite3.h... no</code><br />
The <code>do_sqlite3</code> gem gets compiled natively, but the development headers weren&#8217;t installed on the system and so the compilation won&#8217;t work.</p>
<p>Install them:</p>
<pre name="code" class="ruby">~$ sudo apt-get install sqlite3
~$ sudo apt-get install libsqlite3-dev</pre>
<p>Then, re-bundle:</p>
<pre name="code" class="ruby">~$ bundle install</pre>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/03/05/installing-sqlite-headers-on-ubuntu-sqlite3-h-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kansas City Ruby User Group: Kyle J Ginavan on Progressive Enhancement</title>
		<link>http://databasically.com/2010/02/12/kansas-city-ruby-user-group-kyle-j-ginavan-on-progressive-enhancement/</link>
		<comments>http://databasically.com/2010/02/12/kansas-city-ruby-user-group-kyle-j-ginavan-on-progressive-enhancement/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 16:30:59 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Kansas City Ruby User Group]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=186</guid>
		<description><![CDATA[Presentation: Kyle Ginivan on Progressive Enhancement
Progressive enhancement is a strategy for web  design that emphasizes accessibility, semantic markup, and external  stylesheet and scripting technologies. Progressive enhancement uses web  technologies in a layered fashion that allows everyone to access the  basic content and functionality of a web page, using any browser or [...]]]></description>
			<content:encoded><![CDATA[<p>Presentation: <a href="http://twitter.com/kylejginavan">Kyle Ginivan</a> on Progressive Enhancement</p>
<blockquote><p><strong>Progressive enhancement</strong> is a strategy for web  design that emphasizes accessibility, semantic markup, and external  stylesheet and scripting technologies. Progressive enhancement uses web  technologies in a layered fashion that allows everyone to access the  basic content and functionality of a web page, using any browser or  Internet connection, while also providing those with better bandwidth or  more advanced browser software an enhanced version of the page.<br />
<span id="more-186"></span><br />
<a href="http://en.wikipedia.org/wiki/Progressive_enhancement">http://en.wikipedia.org/wiki/Progressive_enhancement</a></p></blockquote>
<div style="text-align:center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="281" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=9403827&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="500" height="281" src="http://vimeo.com/moogaloop.swf?clip_id=9403827&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object>></div>
<p><a href="http://vimeo.com/9403827">Kansas City Ruby Users Group | February 2010 | Kyle J. Ginavan | Progressive Enhancement | kcrug.org</a> from <a href="http://vimeo.com/wesgarrison">Wes Garrison</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<h3>Resources:</h3>
<p>Nicole Sullivan on Object Oriented CSS</p>
<ul>
<li>Slides: <a href="http://www.slideshare.net/stubbornella/object-oriented-css" target="_blank">http://www.slideshare.net/stubbornella/object-oriented-css</a></li>
<li>Code: <a href="http://wiki.github.com/stubbornella/oocss/" target="_blank">http://wiki.github.com/stubbornella/oocss/</a></li>
</ul>
<p>Other articles:</p>
<ul>
<li>A List Apart: <a href="http://www.alistapart.com/articles/understandingprogressiveenhancement/">Understanding Progressive Enhancement</a></li>
<li>Wikipedia: <a href="http://en.wikipedia.org/wiki/Progressive_enhancement">Progressive Enhancement</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/02/12/kansas-city-ruby-user-group-kyle-j-ginavan-on-progressive-enhancement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kansas City Ruby User Group: Shashank Date on Blocks, Procs, and Lambdas</title>
		<link>http://databasically.com/2010/01/15/kansas-city-ruby-user-group-shashank-date-on-blocks-procs-and-lambdas/</link>
		<comments>http://databasically.com/2010/01/15/kansas-city-ruby-user-group-shashank-date-on-blocks-procs-and-lambdas/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 16:29:06 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Kansas City Ruby User Group]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=189</guid>
		<description><![CDATA[
Kansas City Ruby Users Group &#124; February 2010 &#124; Kyle J. Ginavan &#124; Progressive Enhancement &#124; kcrug.org from Wes Garrison on Vimeo.
]]></description>
			<content:encoded><![CDATA[<p><object width="500" height="281"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9403827&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9403827&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="281"></embed></object>
<p><a href="http://vimeo.com/9403827">Kansas City Ruby Users Group | February 2010 | Kyle J. Ginavan | Progressive Enhancement | kcrug.org</a> from <a href="http://vimeo.com/wesgarrison">Wes Garrison</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/01/15/kansas-city-ruby-user-group-shashank-date-on-blocks-procs-and-lambdas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capistrano deploy error &quot;fatal: unable to create &#039;.git/index.lock&#039;: File exists&quot;</title>
		<link>http://databasically.com/2009/10/21/capistrano-deploy-error-fatal-unable-to-create-gitindex-lock-file-exists/</link>
		<comments>http://databasically.com/2009/10/21/capistrano-deploy-error-fatal-unable-to-create-gitindex-lock-file-exists/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:54:35 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=132</guid>
		<description><![CDATA[This isn&#8217;t specific to capistrano, necessarily, but I ran into it deploying.
fatal: unable to create '.git/index.lock': File exists

The fix:
Got to your project&#8217;s shared/cached-copy/.git folder and delete index.lock .  It shouldn&#8217;t ever get hung up like that, but it happened to me.
]]></description>
			<content:encoded><![CDATA[<p>This isn&#8217;t specific to capistrano, necessarily, but I ran into it deploying.</p>
<p><code>fatal: unable to create '.git/index.lock': File exists</code><br />
<span id="more-132"></span><br />
The fix:<br />
Got to your project&#8217;s shared/cached-copy/.git folder and delete index.lock .  It shouldn&#8217;t ever get hung up like that, but it happened to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2009/10/21/capistrano-deploy-error-fatal-unable-to-create-gitindex-lock-file-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing: Lowdown, a Cucumber feature editing webapp</title>
		<link>http://databasically.com/2009/08/25/announcing-lowdown-a-cucumber-feature-editing-webapp/</link>
		<comments>http://databasically.com/2009/08/25/announcing-lowdown-a-cucumber-feature-editing-webapp/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 22:35:09 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://localhost/?p=221</guid>
		<description><![CDATA[




An original application completed for Rails Rumble 2009.
Lowdown helps keep your development project on track by helping   developers, designers, project managers and owners all focus on   satisfying stakeholders.
Built along with Sean Cribbs + Scotty   Moon + Paul  du Coudray
While leading the competition after judges&#8217; voting ended, we slipped [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter" style="width: 610px;">
<dt class="wp-caption-dt"><img title="Lowdown App" src="/wp-content/images/lowdown-screen.png" alt="" width="600" height="337" /></dt>
</dl>
</div>
<p>An original application completed for <a href="http://r09.railsrumble.com">Rails Rumble 2009</a>.</p>
<p>Lowdown helps keep your development project on track by helping   developers, designers, project managers and owners all focus on   satisfying stakeholders.</p>
<p>Built along with <a href="http://www.prime-motif.com/">Sean Cribbs</a> + <a href="http://www.scottymoon.com/">Scotty   Moon</a> + <a href="http://spurrd.com">Paul  du Coudray</a></p>
<p>While leading the competition after judges&#8217; voting ended, we slipped to 4th place after public voting and ended up taking the &#8220;Best Appearance&#8221; category, which is fantastic.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2009/08/25/announcing-lowdown-a-cucumber-feature-editing-webapp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove ERB files after upgrading to haml</title>
		<link>http://databasically.com/2009/06/10/remove-erb-files-after-upgrading-to-haml/</link>
		<comments>http://databasically.com/2009/06/10/remove-erb-files-after-upgrading-to-haml/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 01:43:43 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=123</guid>
		<description><![CDATA[I converted an application to haml and wanted to get rid of my previous ERb templates.


find ./app/views -name "*.html.erb" -print0 &#124; xargs -0 rm
Explanation

find() ./app/views -name "*.html.erb" returns a list of all ERb view templates.
-print0 formats the output specially.
xargs is a program that takes a list and runs a command for each item in that [...]]]></description>
			<content:encoded><![CDATA[<p>I converted an application to <a href="http://haml.hamptoncatlin.com/">haml</a> and wanted to get rid of my previous ERb templates.<br />
<span id="more-123"></span></p>
<pre class="ruby" name="code">
find ./app/views -name "*.html.erb" -print0 | xargs -0 rm</pre>
<h3>Explanation</h3>
<ul>
<li><code>find() ./app/views -name "*.html.erb"</code> returns a list of all ERb view templates.</li>
<li><code>-print0</code> formats the output specially.</li>
<li><code>xargs</code> is a program that takes a list and runs a command for each item in that list.</li>
<li><code>-0</code> means the input format is specially formatted by <code>-print0</code></li>
<li><code>rm</code> is the command we want to run for each found file</li>
</ul>
<p>So, each found file will get deleted. Bask in your newfound haml-ness.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2009/06/10/remove-erb-files-after-upgrading-to-haml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
