<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -58,20 +58,41 @@ suscription, contact or other entity. This class is parsed from the @&lt;entry&gt;@ ta
 tag in all YouTube data API requests. (To see more about the structure of the xml response go
 to the &quot;YouTube API&quot;:http://code.google.com/apis/youtube/developers_guide_protocol.html#Understanding_Video_Entries
 
-The returned Entry instance has a main mehod: **video** (alias for **videos**), wich is an easy-to-remember alias for @entry@.
+The returned model instance has a main mehod: **videos**, wich is more than an alias for @entry@.
 
 **Example**
 
   &lt;pre&gt;&lt;code&gt;
-  # controller:
-  @tube = YouTube.find('ruby on rails', :max_results =&gt; 5)
+  # --controller--
+  def index
+    @youtube = YouTube.find('ruby on rails', :max_results =&gt; 5)
+  end
   
-  # view:
-  &lt;h1&gt;&lt;%= @tube.title %&gt;&lt;/h1&gt;
-  &lt;% @tube.videos.each do |video| -%&gt;
-    &lt;%= youtube_embed video %&gt;
-  &lt;% end -%&gt;
-  &lt;/code&gt;&lt;/pre&gt;
+  def show
+    @video = YouTube.find_by_id(params[:id])
+  end
+  
+  # --views--
+  
+  # index.html.erb:
+  &lt;p&gt;&lt;%= image_tag @youtube.logo %&gt;&lt;/p&gt;
+  &lt;h1&gt;&lt;%= @youtube.title %&gt;&lt;/h1&gt;
+  &lt;p&gt;&lt;%= &quot;Displaying #{@youtube.startIndex} - #{@youtube.itemsPerPage} of #{@youtube.totalResults}&quot; %&gt;&lt;/p&gt;
+  &lt;p&gt;&lt;%= link_to 'Upload', new_video_path %&gt;&lt;/p&gt;
+  &lt;%- for video in @youtube.videos -%&gt;
+    &lt;strong&gt;&lt;%= video.title %&gt;&lt;/strong&gt; &lt;small&gt;in &lt;%= video.group.category %&gt;&lt;/small&gt;
+    by &lt;%= link_to video.author.name, &quot;http://youtube.com/#{video.author.name}&quot; %&gt;&lt;br /&gt;
+    &lt;%= simple_format truncate(video.content, :length =&gt; 100) %&gt;
+    &lt;%= link_to image_tag(video.group.thumbnail.first.url, :alt =&gt; video.title), video_path(video.id) %&gt;&lt;br /&gt;
+    &lt;small&gt;&lt;%= link_to 'Watch on youtube', video.link.first.href %&gt;&lt;/small&gt;
+    &lt;p&gt;&amp;nbsp;&lt;/p&gt;
+  &lt;%- end -%&gt;
+  
+  # show.html.erb
+  &lt;h1&gt;&lt;%= @video.title %&gt;&lt;/h1&gt;
+  &lt;em&gt;by &lt;%= link_to @video.author.name, &quot;http://youtube.com/#{@video.author.name}&quot; %&gt;&lt;/em&gt;
+  &lt;p&gt;&lt;%= youtube_embed @video %&gt;&lt;/p&gt;
+  &lt;%= link_to 'Back', videos_path %&gt;
 
 As you can see, the @youtube_embed@ method is used to display a video.
 </diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -1,18 +1,7 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
 class &lt;%= class_name %&gt;Test &lt; Test::Unit::TestCase
-  def setup
-    @v = &lt;%= class_name %&gt;.uploaded_by('rumil')
-  end
-  
   def test_this_plugin
-    assert('rumil', @v.author.name)
-    assert_match(/Videos related to.+/,
-      &lt;%= class_name %&gt;.related_to(@v.videos.first).title)
-    assert_match(/Videos responses to.+/,
-      &lt;%= class_name %&gt;.responses_to(@v.videos.first).title)
-    assert_equal('YouTube Videos matching query: ruby+on+rails',
-      &lt;%= class_name %&gt;.find('ruby on rails').title)
-    assert_equal('Top Rated', &lt;%= class_name %&gt;.top_rated(:today).title)
+    # needs some tests...
   end
 end
\ No newline at end of file</diff>
      <filename>generators/youtube_model/templates/unit_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-puts IO.read(File.join(File.dirname(__FILE__), 'README'))
\ No newline at end of file
+puts IO.read(File.join(File.dirname(__FILE__), 'README.textile'))
\ No newline at end of file</diff>
      <filename>install.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>MIT-LICENSE</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>adec7eee6df5ba11a4b12c67b499ff6f6de0bf86</id>
    </parent>
  </parents>
  <author>
    <name>Edgar J. Suarez</name>
    <email>edgar.js@gmail.com</email>
  </author>
  <url>http://github.com/edgarjs/youtube-model/commit/25dc651871d8ec2cce09d1b9283824e475dc89c4</url>
  <id>25dc651871d8ec2cce09d1b9283824e475dc89c4</id>
  <committed-date>2008-09-16T23:04:11-07:00</committed-date>
  <authored-date>2008-09-16T23:04:11-07:00</authored-date>
  <message>Readme updated with more useful examples. Unit Test cleaned, needs to add some useful tests aswell</message>
  <tree>f9c8bffd8cb2d7a091db42f926b118c8ca6f7385</tree>
  <committer>
    <name>Edgar J. Suarez</name>
    <email>edgar.js@gmail.com</email>
  </committer>
</commit>
