<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,6 +6,9 @@ class MessagesController &lt; ApplicationController
   def index
     @messages = Message.find(:all, :include =&gt; :user) do
       paginate :page =&gt; params[:page], :per_page =&gt; params[:per_page]
+      if params[:user_id]
+        user_id == params[:user_id]
+      end
       if params[:kind]
         kind == params[:kind]
       end</diff>
      <filename>app/controllers/messages_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 ActionController::Routing::Routes.draw do |map|
-  map.resources :users, :only =&gt; [:index, :create], :collection =&gt; { :current =&gt; :get, :prune =&gt; :get }
+  map.resources :users, :only =&gt; [:index, :create], :collection =&gt; { :current =&gt; :get, :prune =&gt; :get }, :has_many =&gt; :messages
   map.resource  :session, :only =&gt; [:create, :destroy]
   map.resources :messages, :only =&gt; [:index, :create]
 end</diff>
      <filename>config/routes.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>455300c85e71d4d8b0869b99476199e88a1193cc</id>
    </parent>
  </parents>
  <author>
    <name>Brandon Arbini</name>
    <email>brandon@sevenwire.com</email>
  </author>
  <url>http://github.com/sevenwire/flak/commit/4b6d36aefd6ac721d025863ef943ebfcdd7ad037</url>
  <id>4b6d36aefd6ac721d025863ef943ebfcdd7ad037</id>
  <committed-date>2009-11-09T20:21:14-08:00</committed-date>
  <authored-date>2009-11-09T20:21:14-08:00</authored-date>
  <message>Adding a call to retrieve all messages of a particular user.</message>
  <tree>a12f9e964d0a3b3b71dece9a8a1077c02f0885dc</tree>
  <committer>
    <name>Brandon Arbini</name>
    <email>brandon@sevenwire.com</email>
  </committer>
</commit>
