<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,7 @@ module PortfolioTags
   class TagError &lt; StandardError; end
   
   [:clients, :projects].each do |portfolio_model|
+    single_model = portfolio_model.to_s.singularize
     tag &quot;#{portfolio_model.to_s}&quot; do |tag|
       tag.expand
     end
@@ -12,13 +13,17 @@ module PortfolioTags
       tag.locals.send(&quot;#{portfolio_model}=&quot;, collection)
       result = ''
       collection.each do |item|
-        tag.locals.send(&quot;#{portfolio_model.to_s.singularize}=&quot;, item)
+        tag.locals.send(&quot;#{single_model}=&quot;, item)
         result &lt;&lt;  tag.expand
       end
       result
     end
     tag &quot;#{portfolio_model.to_s}:each:name&quot; do |tag|
-      tag.locals.send(&quot;#{portfolio_model.to_s.singularize}&quot;).send(:name)
+      tag.locals.send(&quot;#{single_model}&quot;).send(:name)
+    end
+    tag &quot;#{portfolio_model.to_s}:each:content&quot; do |tag|
+      text_type = single_model + &quot;_text&quot;
+      tag.locals.send(&quot;#{single_model}&quot;).send(text_type+&quot;s&quot;).find(:first, :conditions =&gt; ['name = ?', 'description']).content
     end
   end
   </diff>
      <filename>lib/portfolio_tags.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,6 @@ class PortfolioExtension &lt; Radiant::Extension
   end
   
   def activate
-    # connect UserActionObserver with my models 
     Page.send :include, PortfolioTags
     UserActionObserver.instance.send :add_observer!, Client 
     UserActionObserver.instance.send :add_observer!, ClientText </diff>
      <filename>portfolio_extension.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,26 +2,25 @@ class PortfolioDataset &lt; Dataset::Base
   uses :users
   
   def load
-    create_client 'Saturn Flyer'
-    create_client 'Ignite Social Media' do
-      create_project 'ignite website'
+    create_client 'Saturn Flyer', 'designers and developers'
+    create_client 'Ignite Social Media', 'original' do
+      create_project 'ignite website', 'moving to Radiant'
     end
-    create_client 'Kratos Defense' do
-      create_project 'iris'
+    create_client 'Kratos Defense', 'strength to success' do
+      create_project 'iris', 'tracking users and deployments'
     end
-    create_client 'Smithsonian' do
-      create_project 'invertebrates'
+    create_client 'Smithsonian', 'increase &amp; diffusion of knowledge' do
+      create_project 'invertebrates', 'updating website'
     end
-    create_client 'Bright Yellow Jacket' do
-      create_project 'byj site'
+    create_client 'Bright Yellow Jacket', 'stand apart' do
+      create_project 'byj site', 'developing website'
     end
   end
   
   def create_client(name, text = nil)
-    create_record :client, name.symbolize, :name =&gt; name do
-      unless text.blank?
-        create_record :client_text, 'description', :content =&gt; text
-      end
+    create_record :client, name.symbolize, :name =&gt; name
+    unless text.blank?
+      create_record :client_text, :name =&gt; 'description', :content =&gt; text, :client_id =&gt; client_id(name.symbolize)
     end
     if block_given?
       @client_id = client_id(name.symbolize)
@@ -30,10 +29,9 @@ class PortfolioDataset &lt; Dataset::Base
   end
   
   def create_project(name, text = nil)
-    create_record :project, name.symbolize, :name =&gt; name do
-      unless text.blank?
-        create_record :project_text, 'description', :content =&gt; text, :client_id =&gt; @client_id
-      end
-    end
+    create_record :project, name.symbolize, :name =&gt; name, :client_id =&gt; @client_id
+    # unless text.blank?
+      create_record :project_text, :name =&gt; 'description', :content =&gt; text, :project_id =&gt; project_id(name.symbolize)
+    # end
   end
 end
\ No newline at end of file</diff>
      <filename>spec/datasets/portfolio_dataset.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,6 +30,11 @@ describe Page do
           pages(:home).should render('&lt;r:clients:each&gt;&lt;r:name /&gt; &lt;/r:clients:each&gt;').as('Saturn Flyer Ignite Social Media Kratos Defense Smithsonian Bright Yellow Jacket ')
         end
       end
+      describe &quot;content&quot; do
+        it &quot;should display the client description&quot; do
+          pages(:home).should render('&lt;r:clients:each limit=&quot;1&quot;&gt;&lt;r:content /&gt;&lt;/r:clients:each&gt;').as('designers and developers')
+        end
+      end
     end
   end
   
@@ -60,6 +65,11 @@ describe Page do
           pages(:home).should render('&lt;r:projects:each&gt;&lt;r:name /&gt; &lt;/r:projects:each&gt;').as('ignite website iris invertebrates byj site ')
         end
       end
+      describe &quot;content&quot; do
+        it &quot;should display the project description&quot; do
+          pages(:home).should render('&lt;r:projects:each limit=&quot;1&quot;&gt;&lt;r:content /&gt;&lt;/r:projects:each&gt;').as('moving to Radiant')
+        end
+      end
     end
   end
 end</diff>
      <filename>spec/models/portfolio_tags_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,10 +2,15 @@ require File.dirname(__FILE__) + '/../spec_helper'
 
 describe Project do
   before(:each) do
-    @project = Project.new
+    @project = Project.new(:name =&gt; 'Test')
   end
 
   it &quot;should be valid&quot; do
     @project.should be_valid
   end
+  
+  it &quot;should err without a name&quot; do
+    @project.name = nil
+    @project.should_not be_valid
+  end
 end</diff>
      <filename>spec/models/project_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>96e6a94cf9689175047771373926e57a35dec176</id>
    </parent>
  </parents>
  <author>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </author>
  <url>http://github.com/saturnflyer/radiant-portfolio/commit/0dc660261692f08a77553646a9c7ada0615ff1d9</url>
  <id>0dc660261692f08a77553646a9c7ada0615ff1d9</id>
  <committed-date>2009-04-22T19:37:42-07:00</committed-date>
  <authored-date>2009-04-22T19:37:42-07:00</authored-date>
  <message>more tags</message>
  <tree>efbd8e4d8341e84f2238cc4f92bee9bfcb123183</tree>
  <committer>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </committer>
</commit>
