<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/user_stories_controller.rb</filename>
    </added>
    <added>
      <filename>app/helpers/user_stories_helper.rb</filename>
    </added>
    <added>
      <filename>app/models/user_story.rb</filename>
    </added>
    <added>
      <filename>app/views/user_stories/_form.html.haml</filename>
    </added>
    <added>
      <filename>app/views/user_stories/_user_story.html.haml</filename>
    </added>
    <added>
      <filename>app/views/user_stories/edit.html.haml</filename>
    </added>
    <added>
      <filename>app/views/user_stories/index.html.haml</filename>
    </added>
    <added>
      <filename>app/views/user_stories/new.html.haml</filename>
    </added>
    <added>
      <filename>app/views/user_stories/show.html.haml</filename>
    </added>
    <added>
      <filename>db/migrate/20090301024610_create_user_stories.rb</filename>
    </added>
    <added>
      <filename>test/fixtures/user_stories.yml</filename>
    </added>
    <added>
      <filename>test/functional/user_stories_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/user_story_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ class ReleasesController &lt; ApplicationController
   make_resourceful do
     actions :index, :show, :create, :new, :edit, :update
   end
-  
+    
   def build_object
     @current_object = if current_model.respond_to? :build
       current_model.build(object_parameters)</diff>
      <filename>app/controllers/releases_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@ class Release &lt; ActiveRecord::Base
   validates_presence_of :product_id
   
   belongs_to :product
+  has_many :user_stories
   
   def span_text
     if start &amp;&amp; complete</diff>
      <filename>app/models/release.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,5 +8,5 @@
   = f.label(:start)
   = f.date_select(:start)
 %p
-= f.label(:complete)
-= f.date_select(:complete)
\ No newline at end of file
+  = f.label(:complete)
+  = f.date_select(:complete)
\ No newline at end of file</diff>
      <filename>app/views/releases/_form.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1 @@
 %div[release]
-
-  = link_to 'Show', object_path(release)
-  |
-  = link_to 'Edit', edit_object_path(release)
-  |
-  = link_to 'Destroy', object_path(release), :confirm =&gt; 'Really destroy release?', :method =&gt; :delete</diff>
      <filename>app/views/releases/_release.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,16 @@
 - content_for(:sidebar) do
   %li= link_to(&quot;Edit this release&quot;, edit_release_path(current_object))
+  %li= link_to(&quot;Add a user story&quot;, new_user_story_path(:for =&gt; current_object))
 
 %div[current_object]
   %h1.name
     = h(current_object.name)
   %p.timespan
-    = current_object.span_text
\ No newline at end of file
+    = current_object.span_text
+    
+  %h2 User Stories
+  .user_stories
+    - current_object.user_stories.each do |user_story|
+      %div[user_story]
+        %p.name
+          = link_to(h(user_story.name), user_story_path(user_story))
\ No newline at end of file</diff>
      <filename>app/views/releases/show.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@ ActionController::Routing::Routes.draw do |map|
   map.root :controller =&gt; &quot;welcome&quot;
   map.resources :products, :except =&gt; :destroy
   map.resources :releases, :except =&gt; :destroy
+  map.resources :user_stories, :except =&gt; :destroy
 
   # map.connect ':controller/:action/:id'
   # map.connect ':controller/:action/:id.:format'</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20090221020433) do
+ActiveRecord::Schema.define(:version =&gt; 20090301024610) do
 
   create_table &quot;products&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;,        :limit =&gt; 50, :null =&gt; false
@@ -29,4 +29,11 @@ ActiveRecord::Schema.define(:version =&gt; 20090221020433) do
 
   add_index &quot;releases&quot;, [&quot;product_id&quot;, &quot;name&quot;], :name =&gt; &quot;index_releases_on_product_id_and_name&quot;, :unique =&gt; true
 
+  create_table &quot;user_stories&quot;, :force =&gt; true do |t|
+    t.integer &quot;release_id&quot;,   :null =&gt; false
+    t.string  &quot;name&quot;,         :null =&gt; false
+    t.text    &quot;description&quot;
+    t.integer &quot;story_points&quot;
+  end
+
 end</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>79095b145133bcdc603904bffd3174ad5e53ca54</id>
    </parent>
  </parents>
  <author>
    <name>david sidlinger</name>
    <email>david.sidlinger@gmail.com</email>
  </author>
  <url>http://github.com/davidsidlinger/scrumbucket/commit/ab56b72bf658b0c30003383bfd8ad95297e40366</url>
  <id>ab56b72bf658b0c30003383bfd8ad95297e40366</id>
  <committed-date>2009-02-28T19:22:52-08:00</committed-date>
  <authored-date>2009-02-28T19:22:52-08:00</authored-date>
  <message>added user stories</message>
  <tree>dd2237edb3610268691ceabf14ff02167d5e31ee</tree>
  <committer>
    <name>david sidlinger</name>
    <email>david.sidlinger@gmail.com</email>
  </committer>
</commit>
