<?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>Nu2Rails and then some. &#187; BDC</title>
	<atom:link href="http://nu2rails.wordpress.com/tag/bdc/feed/" rel="self" type="application/rss+xml" />
	<link>http://nu2rails.wordpress.com</link>
	<description>Mitchells Temporary Blog</description>
	<lastBuildDate>Wed, 15 Oct 2008 17:13:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='nu2rails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0c221db1cfe201ba91e9c8c37a3f5b6b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Nu2Rails and then some. &#187; BDC</title>
		<link>http://nu2rails.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nu2rails.wordpress.com/osd.xml" title="Nu2Rails and then some." />
		<item>
		<title>What I like to call BDC</title>
		<link>http://nu2rails.wordpress.com/2008/10/15/what-i-like-to-call-bdc/</link>
		<comments>http://nu2rails.wordpress.com/2008/10/15/what-i-like-to-call-bdc/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 17:13:01 +0000</pubDate>
		<dc:creator>nu2rails</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[BDC]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://nu2rails.wordpress.com/?p=7</guid>
		<description><![CDATA[First off let me explain the move from my old blog to here at wordpress. Firstly I have learned a great deal since I originally wrote the app I was using to blog from and felt it was in dire need of a rewrite. That and I will soon be moving my blog and would [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nu2rails.wordpress.com&blog=3234118&post=7&subd=nu2rails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>First off let me explain the move from my old blog to here at wordpress. Firstly I have learned a great deal since I originally wrote the app I was using to blog from and felt it was in dire need of a rewrite. That and I will soon be moving my blog and would like to launch the rewrite once I get things squared away.</p>
<p>Now onto BDC&#8230; What is BDC? Well it&#8217;s something I was thinking about while trying to become a little more proficient with Rspec and stories. Basically it would be a file that you can place in your rails app that explains what you basically want the app to do and from there uses a generator to go through the &#8220;story&#8221; and create the models, controllers and views from that. Let&#8217;s see if I can post and example of what a &#8220;story&#8221; would look like.</p>
<blockquote><p>class ExampleBlogStory &lt; BehaviorDrivenCreation :: Base</p>
<p>A user which requires a<br />
login that has between 4 and 6 characters<br />
password that has between 6 and 8 characters<br />
email that is valid<br />
and has<br />
many posts<br />
many comments<br />
one Profile</p>
<p>A post which requires a<br />
title<br />
body<br />
and has<br />
many comments<br />
and belongs to<br />
a user</p>
<p>A comment which requires a<br />
email that is valid<br />
comment<br />
and belongs to a<br />
post<br />
user</p>
<p>end</p></blockquote>
<p>This story would create a user, post, and comment model that</p>
<ol>
<li>use validations for the requirements</li>
<li>Create the model associations for users, posts, and comments</li>
<li>Create the necessary migrations</li>
<li>create the standard crud controllers and views for each model.</li>
</ol>
<p>I don&#8217;t know if it would be possible but it could really give a project a head start as well as set a direction for development and give a good working base to start with. I think it would at least make for a good plugin or gem&#8230; Just my two cents let me know what you think.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nu2rails.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nu2rails.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nu2rails.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nu2rails.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nu2rails.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nu2rails.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nu2rails.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nu2rails.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nu2rails.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nu2rails.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nu2rails.wordpress.com&blog=3234118&post=7&subd=nu2rails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nu2rails.wordpress.com/2008/10/15/what-i-like-to-call-bdc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1fbce41db2f0598ee27dc6e80412c996?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nu2rails</media:title>
		</media:content>
	</item>
	</channel>
</rss>