<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mike Ducharme - Interwebs Developer</title>
	<atom:link href="http://mikeducharme.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikeducharme.wordpress.com</link>
	<description>web 2.0++</description>
	<lastBuildDate>Wed, 29 Apr 2009 01:37:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mikeducharme.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mike Ducharme - Interwebs Developer</title>
		<link>http://mikeducharme.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mikeducharme.wordpress.com/osd.xml" title="Mike Ducharme - Interwebs Developer" />
	<atom:link rel='hub' href='http://mikeducharme.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ruby On Rails &#8211; Gotchas for Beginners</title>
		<link>http://mikeducharme.wordpress.com/2009/04/29/ruby-on-rails-gotchas-for-beginners/</link>
		<comments>http://mikeducharme.wordpress.com/2009/04/29/ruby-on-rails-gotchas-for-beginners/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 01:37:00 +0000</pubDate>
		<dc:creator>michaelducharme</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Scaffold]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://mikeducharme.wordpress.com/?p=12</guid>
		<description><![CDATA[Starting out as a newbie in Ruby on Rails can be a bit frustrating. Here are a few issues I have run into.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeducharme.wordpress.com&amp;blog=7151142&amp;post=12&amp;subd=mikeducharme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Starting out as a newbie in Ruby on Rails can be a bit frustrating. Many tutorials use older versions of rails and since some default configurations have been modified, many tutorials will no longer work.</p>
<p>Here are a few issues I have run into.</p>
<p>1. SQLite3 is the new default database instead of MySQL as of version 2.0.2 (<a title="Rails 2.0.2: Some new defaults and a few fixes" href="http://weblog.rubyonrails.org/2007/12/17/rails-2-0-2-some-new-defaults-and-a-few-fixes" target="_blank">see the official blog post</a>)</p>
<p>The reasoning is that it is easier to use and great for beginners who want to jump right in and play around in a sandbox or small app.</p>
<p>To use MySQL instead of SQLite3 (on Windows):</p>
<ul>
<li>Install MySQL (<a title="MySQL Downloads" href="http://dev.mysql.com/downloads/" target="_blank">see MySQL downloads page</a>)</li>
<li>Check to see if the gem is already installed from the command line:
<pre>gem list</pre>
</li>
<li>If it is not listed, install the MySQL gem:
<pre>gem install mysql</pre>
</li>
<li>force your new app to to use MySQL:
<pre>rails -d mysql <em>project_name</em></pre>
</li>
</ul>
<p>2. The SQLite gem is broken (on Windows systems at the time of this writing)</p>
<p>It seems there is no windows support for the latest gem version 1.2.4 so installation fails. It seems previous versions had an ms32 compiled version for Windows and was included in the gem. If have Visual Studio and enough experience you could download and compile it yourself. A workaround for this is to explicitly install the previous version:</p>
<pre>gem install -v1.2.3 sqlite3-ruby</pre>
<p>You will also need to download the sqlite3.dll file from <a title="SQLite Download Page" href="http://sqlite.org/download.html" target="_blank">sqlite.org</a> and place it in your bin directory (c:\ruby\bin\). Be sure to download the &#8220;precompiled binary for windows&#8221; dll.</p>
<p>I then went ahead and deleted the &#8220;sqlite3-ruby-1.2.4&#8243; from my gems folder (c:\ruby\lib\ruby\gems\1.8\gems\) since the failed installation notice indicated that these files are only there for inspection.</p>
<p>3. Dynamic scaffolding, the magic that got many people excited about RoR, was deprecated in favor of using the scaffold generator.</p>
<p>You can no longer jump into your controller and say:</p>
<pre>scaffold :<em>model_name</em></pre>
<p>Instead, use the scaffold generator from the command line:</p>
<pre>
<pre>ruby script\generate scaffold <em>model_name</em> <em>field_name_1</em>:<em>data_type</em> <em>field_name_2</em>:<em>data_type</em></pre>
</pre>
<p>Troubleshooting errors and wading through intertube forums was far from what I had in mind for a first RoR experience. Hopefully this will help some people get up and running faster. We&#8217;ll see if there&#8217;s a need for a &#8220;Gotchas for Beginners 2&#8243;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikeducharme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikeducharme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikeducharme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikeducharme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikeducharme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikeducharme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikeducharme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikeducharme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikeducharme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikeducharme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikeducharme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikeducharme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikeducharme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikeducharme.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeducharme.wordpress.com&amp;blog=7151142&amp;post=12&amp;subd=mikeducharme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikeducharme.wordpress.com/2009/04/29/ruby-on-rails-gotchas-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb49d76156e03c5254023ef8c53a723b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">michaelducharme</media:title>
		</media:content>
	</item>
		<item>
		<title>MVC Frameworks</title>
		<link>http://mikeducharme.wordpress.com/2009/03/29/mvc-frameworks/</link>
		<comments>http://mikeducharme.wordpress.com/2009/03/29/mvc-frameworks/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 15:58:12 +0000</pubDate>
		<dc:creator>michaelducharme</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Web Frameworks]]></category>

		<guid isPermaLink="false">http://mikeducharme.wordpress.com/?p=7</guid>
		<description><![CDATA[Listing of Model-View-Controller Web Frameworks with links and brief descriptions.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeducharme.wordpress.com&amp;blog=7151142&amp;post=7&amp;subd=mikeducharme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Model View Controller frameworks</h3>
<p>I&#8217;ve started to immerse myself in Ruby on Rails literature, admittedly due to the &#8220;buzz&#8221;, but there are many forward-thinking web frameworks out there. Here&#8217;s a list of some popular ones with links and brief descriptions summarized from their respective websites.</p>
<ul>
<li><a title="Ruby on Rails" href="http://rubyonrails.org/" target="_blank">Ruby on Rails</a> &#8211; Built on Ruby. Full stack, Web application framework optimized for  sustainable programming productivity, allows writing sound code by  favoring convention over configuration.</li>
<li><a title="Merb" href="http://merbivore.com/index.html" target="_blank">Merb</a> &#8211; Built on Ruby. ORM-agnostic,  JavaScript library agnostic, and template language agnostic, preferring  plugins that add in support for a particular feature rather than trying  to produce a monolithic library with everything in the core.</li>
<li><a title="TurboGears" href="http://turbogears.org/" target="_blank">TurboGears</a> &#8211; Built on Python. Rapid  development &#8220;front-to_back&#8221; web meta-framework. Its aim is to simplify  and speed up the development of modern web applications</li>
<li><a title="Django" href="http://www.djangoproject.com/" target="_blank">Django</a> &#8211; Built on Python. High-level Python Web framework that encourages rapid development and clean, pragmatic design.</li>
<li><a title="CodeIgnitor" href="http://codeigniter.com/" target="_blank">CodeIgniter</a> &#8211; Built on PHP. Open  source web application framework for use in building dynamic web sites.  Enables developers to build applications faster by providing a rich set  of libraries for commonly needed tasks, as well as a simple interface  and a logical structure to access these libraries.</li>
<li><a title="CakePHP" href="http://cakephp.org/" target="_blank">CakePHP</a> &#8211; Built on PHP.  Open  source web application framework for producing web applications. It is  written in PHP, modeled after the concepts of Ruby on Rails.</li>
<li><a title="ASP.NET MVC" href="http://www.asp.net/mvc/" target="_blank">ASP.NET MVC</a> &#8211; Built on&#8230; ASP.NET. Enables  you to build Model View Controller (MVC) applications by using the  ASP.NET framework.  This does not really qualify as &#8220;popular&#8221; yet since  it has just been released, but I&#8217;ll be exploring it in detail so I&#8217;ve  added it for posterity.</li>
</ul>
<h3>And More&#8230;</h3>
<p>Wow, I must admit that I had no idea there were so many MVC frameworks out there. <a title="Implementations of MVC as web-based frameworks" href="http://en.wikipedia.org/wiki/Model-view-controller#Implementations_of_MVC_as_web-based_frameworks" target="_blank">This</a> wikipedia page has a pretty comprehensive list.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikeducharme.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikeducharme.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikeducharme.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikeducharme.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikeducharme.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikeducharme.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikeducharme.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikeducharme.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikeducharme.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikeducharme.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikeducharme.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikeducharme.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikeducharme.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikeducharme.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeducharme.wordpress.com&amp;blog=7151142&amp;post=7&amp;subd=mikeducharme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikeducharme.wordpress.com/2009/03/29/mvc-frameworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb49d76156e03c5254023ef8c53a723b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">michaelducharme</media:title>
		</media:content>
	</item>
	</channel>
</rss>
