<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,89 @@
-RESTful_Easy_Messages Plug-in
\ No newline at end of file
+RESTful_Easy_Messages Plug-in
+
+Mostrar / Ocultar Avisos
+RESTful_Easy_Messages
+
+    * 16th October , 2007 by Sam in Ruby on Rails
+    * 31 comments
+
+So three month ago I released my first Rails plug-in, Easy_Messages (EZM), and I was pleasantly surprised by the response, excited that people were actually using my code. Then I became paranoid as people were actually using my code! Since then I worked briefly on a project which was written with REST in mind and was forced to look into it. Up to that point I had been doing my best to not meet REST in the hallway as I was a little scared by him. I don&#8217;t know why? After watching the Peepcode screencast by Geoffrey Grosenbach, everything clicked and I realized that I could make the code for EZM much better. The end result is this plug-in. I hope you find it useful.
+
+== The code is hosted at GitHub.
+
+Here&#8217;s how to install the plug-in. (Rails 2.1 required for git plug-ins)
+
+./script/plugin install git://github.com/sschroed/restful_ezm.git
+
+== Here&#8217;s how to run the generator.
+
+For standard html views: ./script/generate messages erb
+For haml[1] views: ./script/generate messages haml
+
+[1] You will need to install the haml plug-in for the views to render properly.
+
+I&#8217;ve tried to decouple as much of the code as I could with this release. If you used Easy_Messages you&#8217;ll remember most of the code was stuck in the plug-in directory. With REZM the generator will put a controller, helper, model, tests, and a few other support files right into your project for easy access. To see the entire list view the FILELIST in plugins/restful_easy_messages. There is still a tiny bit of code in the plug-in though.
+
+If you are using Rick Olson&#8217;s RESTful_Authentication you can get REZM up and running with minimal setup as I pulled it from a project that uses it.
+
+First, update the user model.
+view plainprint?
+
+   1. class User &lt; ActiveRecord::Base  
+   2.   restful_easy_messages  
+   3.   # The rest of your class  
+   4.   #  
+   5.   #  
+   6. end  
+
+class User &lt; ActiveRecord::Base restful_easy_messages # The rest of your class # # end
+
+Then add the REZM routes.
+view plainprint?
+
+   1. # Add these names routes to your project's config/routes.rb  
+   2.   
+   3. map.resources :users do |user|  
+   4.   user.resources :messages,  
+   5.                  :collection =&gt; {:destroy_selected =&gt; :post,  
+   6.                                  :inbox            =&gt; :get,  
+   7.                                  :outbox           =&gt; :get,  
+   8.                                  :trashbin         =&gt; :get},  
+   9.                  :member =&gt; {:reply =&gt; :get}  
+  10. end  
+
+# Add these names routes to your project's config/routes.rb map.resources :users do |user| user.resources :messages, :collection =&gt; {:destroy_selected =&gt; :post, :inbox =&gt; :get, :outbox =&gt; :get, :trashbin =&gt; :get}, :member =&gt; {:reply =&gt; :get} end
+
+Now run db:migrate and you should be good to go.
+
+But what if you didn&#8217;t use restful_authentication? Having to use Acts_As_Authenticated for EZM was the biggest complaint that I heard so I made REZM with hooks for you to switch out R_A if you want. Open lib\restful_easy_messages_controller_system.rb to do so. Just replace the current_user and login_required methods with calls to similar ones in your application.
+view plainprint?
+
+   1. module RestfulEasyMessagesControllerSystem  
+   2.   protected  
+   3.     
+   4.   # This method provides an abstraction layer to the REZM controller for the  
+   5.   # &quot;current&quot;, logged-in user in case you are not using Restful_Authentication.  
+   6.   def rezm_user  
+   7.     # Provide your version of current_user here if not using Restful_authentication  
+   8.     current_user  
+   9.   end  
+  10.     
+  11.   # This method provides an abstraction layer to the REZM controller for   
+  12.   # requiring a user to be loggefd in if you are not using Restful_Authentication.  
+  13.   def rezm_login_required  
+  14.     # Provide your version of login_required here if not using Restful_authentication  
+  15.     login_required  
+  16.   end  
+  17.     
+  18.   # Inclusion hook to make #rezm_user  
+  19.   # available as ActionView helper methods.  
+  20.   def self.included(base)  
+  21.     base.send :helper_method, :rezm_user  
+  22.   end  
+  23. end  
+
+module RestfulEasyMessagesControllerSystem protected # This method provides an abstraction layer to the REZM controller for the # &quot;current&quot;, logged-in user in case you are not using Restful_Authentication. def rezm_user # Provide your version of current_user here if not using Restful_authentication current_user end # This method provides an abstraction layer to the REZM controller for # requiring a user to be loggefd in if you are not using Restful_Authentication. def rezm_login_required # Provide your version of login_required here if not using Restful_authentication login_required end # Inclusion hook to make #rezm_user # available as ActionView helper methods. def self.included(base) base.send :helper_method, :rezm_user end end
+
+I believe that is it. Oh wait, there is also an Atom feed for the inbox!
+
+If you wish to try out REZM I&#8217;ve set up a sample app. You can message the user &#8220;sam&#8221; if you want to test writing a mesasge.
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,36 +1,34 @@
 # Add these names routes to your project's config/routes.rb
-map.resources :users do |user|
-  user.resources :messages,
-                 :collection =&gt; {:destroy_selected =&gt; :post,
-                                 :inbox            =&gt; :get,
-                                 :outbox           =&gt; :get,
-                                 :trashbin         =&gt; :get},
-                 :member     =&gt; {:reply =&gt; :get}
-end
+map.resources :messages,  
+                 :collection =&gt; {:destroy_selected =&gt; :post,  
+                                 :inbox            =&gt; :get,  
+                                 :outbox           =&gt; :get,  
+                                 :trashbin         =&gt; :get},  
+                 :member =&gt; {:reply =&gt; :get}  
 
 # Here is a list of all the route created by Restful_EZM. Rake routes was used to generate this
 
-                     inbox_user_messages GET    /users/:user_id/messages/inbox                    {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;inbox&quot;}
-           formatted_inbox_user_messages GET    /users/:user_id/messages/inbox.:format            {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;inbox&quot;}
-                    outbox_user_messages GET    /users/:user_id/messages/outbox                   {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;outbox&quot;}
-          formatted_outbox_user_messages GET    /users/:user_id/messages/outbox.:format           {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;outbox&quot;}
-                  trashbin_user_messages GET    /users/:user_id/messages/trashbin                 {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;trashbin&quot;}
-        formatted_trashbin_user_messages GET    /users/:user_id/messages/trashbin.:format         {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;trashbin&quot;}
-          destroy_selected_user_messages POST   /users/:user_id/messages/destroy_selected         {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;destroy_selected&quot;}
-formatted_destroy_selected_user_messages POST   /users/:user_id/messages/destroy_selected.:format {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;destroy_selected&quot;}
-                           user_messages GET    /users/:user_id/messages                          {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;index&quot;}
-                 formatted_user_messages GET    /users/:user_id/messages.:format                  {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;index&quot;}
-                                         POST   /users/:user_id/messages                          {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;create&quot;}
-                                         POST   /users/:user_id/messages.:format                  {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;create&quot;}
-                        new_user_message GET    /users/:user_id/messages/new                      {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;new&quot;}
-              formatted_new_user_message GET    /users/:user_id/messages/new.:format              {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;new&quot;}
-                       edit_user_message GET    /users/:user_id/messages/:id/edit                 {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;edit&quot;}
-             formatted_edit_user_message GET    /users/:user_id/messages/:id/edit.:format         {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;edit&quot;}
-                      reply_user_message GET    /users/:user_id/messages/:id/reply                {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;reply&quot;}
-            formatted_reply_user_message GET    /users/:user_id/messages/:id/reply.:format        {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;reply&quot;}
-                            user_message GET    /users/:user_id/messages/:id                      {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;show&quot;}
-                  formatted_user_message GET    /users/:user_id/messages/:id.:format              {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;show&quot;}
-                                         PUT    /users/:user_id/messages/:id                      {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;update&quot;}
-                                         PUT    /users/:user_id/messages/:id.:format              {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;update&quot;}
-                                         DELETE /users/:user_id/messages/:id                      {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;destroy&quot;}
-                                         DELETE /users/:user_id/messages/:id.:format              {:controller=&gt;&quot;messages&quot;, :action=&gt;&quot;destroy&quot;}
+                     inbox_messages GET    /messages/inbox                    {:action=&gt;&quot;inbox&quot;, :controller=&gt;&quot;messages&quot;}
+           formatted_inbox_messages GET    /messages/inbox.:format            {:action=&gt;&quot;inbox&quot;, :controller=&gt;&quot;messages&quot;}
+                    outbox_messages GET    /messages/outbox                   {:action=&gt;&quot;outbox&quot;, :controller=&gt;&quot;messages&quot;}
+          formatted_outbox_messages GET    /messages/outbox.:format           {:action=&gt;&quot;outbox&quot;, :controller=&gt;&quot;messages&quot;}
+                  trashbin_messages GET    /messages/trashbin                 {:action=&gt;&quot;trashbin&quot;, :controller=&gt;&quot;messages&quot;}
+        formatted_trashbin_messages GET    /messages/trashbin.:format         {:action=&gt;&quot;trashbin&quot;, :controller=&gt;&quot;messages&quot;}
+          destroy_selected_messages POST   /messages/destroy_selected         {:action=&gt;&quot;destroy_selected&quot;, :controller=&gt;&quot;messages&quot;}
+formatted_destroy_selected_messages POST   /messages/destroy_selected.:format {:action=&gt;&quot;destroy_selected&quot;, :controller=&gt;&quot;messages&quot;}
+                           messages GET    /messages                          {:action=&gt;&quot;index&quot;, :controller=&gt;&quot;messages&quot;}
+                 formatted_messages GET    /messages.:format                  {:action=&gt;&quot;index&quot;, :controller=&gt;&quot;messages&quot;}
+                                    POST   /messages                          {:action=&gt;&quot;create&quot;, :controller=&gt;&quot;messages&quot;}
+                                    POST   /messages.:format                  {:action=&gt;&quot;create&quot;, :controller=&gt;&quot;messages&quot;}
+                        new_message GET    /messages/new                      {:action=&gt;&quot;new&quot;, :controller=&gt;&quot;messages&quot;}
+              formatted_new_message GET    /messages/new.:format              {:action=&gt;&quot;new&quot;, :controller=&gt;&quot;messages&quot;}
+                       edit_message GET    /messages/:id/edit                 {:action=&gt;&quot;edit&quot;, :controller=&gt;&quot;messages&quot;}
+             formatted_edit_message GET    /messages/:id/edit.:format         {:action=&gt;&quot;edit&quot;, :controller=&gt;&quot;messages&quot;}
+                      reply_message GET    /messages/:id/reply                {:action=&gt;&quot;reply&quot;, :controller=&gt;&quot;messages&quot;}
+            formatted_reply_message GET    /messages/:id/reply.:format        {:action=&gt;&quot;reply&quot;, :controller=&gt;&quot;messages&quot;}
+                            message GET    /messages/:id                      {:action=&gt;&quot;show&quot;, :controller=&gt;&quot;messages&quot;}
+                  formatted_message GET    /messages/:id.:format              {:action=&gt;&quot;show&quot;, :controller=&gt;&quot;messages&quot;}
+                                    PUT    /messages/:id                      {:action=&gt;&quot;update&quot;, :controller=&gt;&quot;messages&quot;}
+                                    PUT    /messages/:id.:format              {:action=&gt;&quot;update&quot;, :controller=&gt;&quot;messages&quot;}
+                                    DELETE /messages/:id                      {:action=&gt;&quot;destroy&quot;, :controller=&gt;&quot;messages&quot;}
+                                    DELETE /messages/:id.:format              {:action=&gt;&quot;destroy&quot;, :controller=&gt;&quot;messages&quot;}</diff>
      <filename>RESTFUL_EZM_ROUTES</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 atom_feed do |feed|
-  feed.title &quot;#{@rezm_user.login.capitalize}'s Inbox&quot;
+  feed.title &quot;#{rezm_user.login.capitalize}'s Inbox&quot;
   feed.updated @messages.first.created_at
   
   for message in @messages
-    feed.entry(message, :url =&gt; user_message_url(rezm_user, message)) do |entry|
+    feed.entry(message, :url =&gt; message_url(message)) do |entry|
      entry.title   message.subject
       entry.content message.body, :type =&gt; 'html'
       </diff>
      <filename>generators/messages/templates/index.atom.builder</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 &lt;div&gt;&lt;%= flash[:notice] %&gt;&lt;/div&gt;
 &lt;div&gt;&lt;%= rezm_menu -%&gt;&lt;/div&gt;
 &lt;p&gt;&lt;/p&gt;
-&lt;% form_for :message, :url =&gt; destroy_selected_user_messages_path do |form| %&gt;
+&lt;% form_for :message, :url =&gt; destroy_selected_messages_path do |form| %&gt;
   &lt;table border=&quot;1&quot;&gt;
     &lt;tr&gt;
       &lt;th&gt;&lt;/th&gt;</diff>
      <filename>generators/messages/templates/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ class MessagesController &lt; ApplicationController
 
   # GET /messages
   def index
-    redirect_to inbox_user_messages_url
+    redirect_to inbox_messages_url
   end
   
   # GET /messages/1
@@ -37,7 +37,7 @@ class MessagesController &lt; ApplicationController
     respond_to do |format|
       if @message.save
         flash[:notice] = 'Message was sent successfully.'
-        format.html { redirect_to outbox_user_messages_path }
+        format.html { redirect_to outbox_messages_path }
       else
         format.html { render :action =&gt; &quot;new&quot; }
       end
@@ -68,11 +68,10 @@ class MessagesController &lt; ApplicationController
   def inbox
     session[:mail_box] = &quot;inbox&quot;
     @messages = rezm_user.inbox_messages
-    
     respond_to do |format|
       format.html { render :action =&gt; &quot;index&quot; }
       format.xml  { render :xml    =&gt; @messages.to_xml }
-      format.atom { render :action =&gt; &quot;index&quot; }
+      format.atom { render :action =&gt; &quot;index&quot;, :layout =&gt; false }
     end
   end
   
@@ -100,13 +99,14 @@ class MessagesController &lt; ApplicationController
   
   # GET /messages/1/reply
   def reply
-    @message = Message.find_by_id(params[:id])
+    replied_message = Message.find(params[:id])
+    @message = Message.new
     
     respond_to do |format|
-      if can_view(@message)
-        @message.recipient = @message.sender_name
-        @message.subject = &quot;Re: &quot; + @message.subject 
-        @message.body = &quot;\n\n___________________________\n&quot; + @message.sender_name + &quot; wrote:\n\n&quot; + @message.body
+      if can_view(replied_message)
+        @message.recipient = replied_message.sender_name
+        @message.subject = &quot;Re: &quot; + replied_message.subject 
+        @message.body = &quot;\n\n___________________________\n&quot; + replied_message.sender_name + &quot; wrote:\n\n&quot; + replied_message.body
         format.html { render :action =&gt; &quot;new&quot; }
       else
         headers[&quot;Status&quot;] = &quot;Forbidden&quot;
@@ -126,7 +126,7 @@ class MessagesController &lt; ApplicationController
         end
         format.html { redirect_to current_mailbox }
       else
-        format.html { redirect_to inbox_user_messages_path }
+        format.html { redirect_to inbox_messages_path }
       end
     end
   end
@@ -142,13 +142,13 @@ class MessagesController &lt; ApplicationController
   def current_mailbox
     case session[:mail_box]
     when &quot;inbox&quot;
-      inbox_user_messages_path
+      inbox_messages_path
     when &quot;outbox&quot;
-      outbox_user_messages_path
+      outbox_messages_path
     when &quot;trashbin&quot;
-      trashbin_user_messages_path
+      trashbin_messages_path
     else
-      inbox_user_messages_path
+      inbox_messages_path
     end
   end
   </diff>
      <filename>generators/messages/templates/messages_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,67 +18,60 @@ class MessagesControllerTest &lt; Test::Unit::TestCase
 
   def test_should_get_index
     login_as(&quot;sam&quot;)
-    get :index, :user_id =&gt; users(:sam)
+    get :index
     assert_response :redirect
-    assert_redirected_to inbox_user_messages_path
+    assert_redirected_to inbox_messages_path
   end
   
   def test_should_get_inbox
     login_as(&quot;sam&quot;)
-    get :inbox, :user_id =&gt; users(:sam)
+    get :inbox
     assert_response :success
   end
   
   def test_should_get_outbox
     login_as(&quot;sam&quot;)
-    get :outbox, :user_id =&gt; users(:sam)
+    get :outbox
     assert_response :success
   end
   
   def test_should_get_trashbin
     login_as(&quot;sam&quot;)
-    get :inbox, :user_id =&gt; users(:sam)
+    get :inbox
     assert_response :success
   end
   
   def test_should_get_new
     login_as(&quot;sam&quot;)
-    get :new, :user_id =&gt; users(:sam)
+    get :new
     assert_response :success
   end
   
-  def test_should_route_messages_of_user
-    options = { :controller =&gt; 'messages',
-                :action =&gt; 'inbox',
-                :user_id =&gt; '3' }
-    assert_routing('users/3/messages/inbox', options)
-  end
-  
   def test_should_get_message
     login_as(&quot;sam&quot;)
-    get :show, :user_id =&gt; users(:sam), :id =&gt; messages(:abby_to_sam_1)
+    get :show, :id =&gt; messages(:abby_to_sam_1)
     assert_response :success
   end
   
   def test_should_protect_message
     login_as(&quot;sam&quot;)
-    get :show, :user_id =&gt; users(:sam), :id =&gt; messages(:abby_to_catie_1)
+    get :show, :id =&gt; messages(:abby_to_catie_1)
     assert_response :forbidden
   end
   
   def test_should_create_message
     message_count = Message.count
     login_as(&quot;sam&quot;)
-    post :create, :user_id =&gt; users(:sam), :message =&gt; {:recipient =&gt; 'abby', :subject =&gt; &quot;hi&quot;, :body =&gt; &quot;Abby, how was school today?&quot;}
+    post :create, :message =&gt; {:recipient =&gt; 'abby', :subject =&gt; &quot;hi&quot;, :body =&gt; &quot;Abby, how was school today?&quot;}
     assert_response :redirect
-    assert_redirected_to outbox_user_messages_path
+    assert_redirected_to outbox_messages_path
     assert_equal message_count + 1, Message.count
   end
   
   def test_should_delete_received_message
     message_pre_delete_state = Message.find(messages(:abby_to_sam_1))
     login_as(&quot;sam&quot;)
-    delete :destroy, :user_id =&gt; users(:sam), :id =&gt; messages(:abby_to_sam_1)
+    delete :destroy, :id =&gt; messages(:abby_to_sam_1)
     assert_response :redirect
     message_post_delete_state = Message.find(messages(:abby_to_sam_1))
     assert_not_equal message_pre_delete_state.receiver_deleted, message_post_delete_state.receiver_deleted
@@ -87,7 +80,7 @@ class MessagesControllerTest &lt; Test::Unit::TestCase
   def test_should_delete_sent_message
     message_pre_delete_state = Message.find(messages(:sam_to_abby_1))
     login_as(&quot;sam&quot;)
-    delete :destroy, :user_id =&gt; users(:sam), :id =&gt; messages(:sam_to_abby_1)
+    delete :destroy, :id =&gt; messages(:sam_to_abby_1)
     assert_response :redirect
     message_post_delete_state = Message.find(messages(:sam_to_abby_1))
     assert_not_equal message_pre_delete_state.sender_deleted, message_post_delete_state.sender_deleted
@@ -96,7 +89,7 @@ class MessagesControllerTest &lt; Test::Unit::TestCase
   def test_should_not_delete_message
     message_pre_delete_state = Message.find(messages(:abby_to_sam_1))
     login_as(&quot;sam&quot;)
-    delete :destroy, :user_id =&gt; users(:sam), :id =&gt; messages(:abby_to_catie_1)
+    delete :destroy, :id =&gt; messages(:abby_to_catie_1)
     assert_response :forbidden
     message_post_delete_state = Message.find(messages(:abby_to_sam_1))
     assert_equal message_pre_delete_state.receiver_deleted, message_post_delete_state.receiver_deleted
@@ -104,13 +97,13 @@ class MessagesControllerTest &lt; Test::Unit::TestCase
   
   def test_should_reply_to_message
     login_as(&quot;sam&quot;)
-    get :reply, :user_id =&gt; users(:sam), :id =&gt; messages(:abby_to_sam_1)
+    get :reply, :id =&gt; messages(:abby_to_sam_1)
     assert_response :success
   end
   
   def test_should_not_reply_to_message
     login_as(&quot;sam&quot;)
-    get :reply, :user_id =&gt; users(:sam), :id =&gt; messages(:abby_to_catie_1)
+    get :reply, :id =&gt; messages(:abby_to_catie_1)
     assert_response :forbidden
   end
 end</diff>
      <filename>generators/messages/templates/messages_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,22 +8,22 @@ module MessagesHelper
   
   # Link to view the inbox
   def rezm_link_to_inbox
-    link_to &quot;Inbox&quot;, inbox_user_messages_path
+    link_to &quot;Inbox&quot;, inbox_messages_path
   end
   
   # Link to compose a message
   def rezm_link_to_create_message
-    link_to &quot;Write&quot;, new_user_message_path
+    link_to &quot;Write&quot;, new_message_path
   end
   
   # Link to view the outbox
   def rezm_link_to_outbox
-    link_to &quot;Outbox&quot;, outbox_user_messages_path
+    link_to &quot;Outbox&quot;, outbox_messages_path
   end
   
   # Link to view the trash bin
   def rezm_link_to_trash_bin
-    link_to &quot;Trash&quot;, trashbin_user_messages_path
+    link_to &quot;Trash&quot;, trashbin_messages_path
   end
   
   # Dynamic label for the sender/receiver column in the messages.rhtml view
@@ -43,7 +43,7 @@ module MessagesHelper
   
   # Link to view the message
   def rezm_link_to_message(message)
-     link_to &quot;#{h(rezm_subject_and_status(message))}&quot;, user_message_path(rezm_user, message)
+     link_to &quot;#{h(rezm_subject_and_status(message))}&quot;, message_path(message)
   end
   
   # Dynamic data for the sender/receiver column in the messages.rhtml view
@@ -84,11 +84,11 @@ module MessagesHelper
   
   # Reply Button
   def rezm_button_to_reply(message)
-    button_to &quot;Reply&quot;, reply_user_message_path(rezm_user, message), :method =&gt; :get  
+    button_to &quot;Reply&quot;, reply_message_path(message), :method =&gt; :get  
   end
   
   # Delete Button
   def rezm_button_to_delete(message)
-    button_to &quot;Delete&quot;, user_message_path(rezm_user, message), :confirm =&gt; &quot;Are you sure?&quot;, :method =&gt; :delete  
+    button_to &quot;Delete&quot;, message_path(message), :confirm =&gt; &quot;Are you sure?&quot;, :method =&gt; :delete  
   end
 end</diff>
      <filename>generators/messages/templates/messages_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 = error_messages_for 'message'
 %fieldset
   %legend Send Message
-  - form_for :message, :url =&gt; user_messages_path do |form|
+  - form_for @message do |form|
     %p
       %label{ :for =&gt; &quot;message_recepient&quot; }Recipient:
       %br/</diff>
      <filename>generators/messages/templates/new.haml</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@
   &lt;fieldset&gt;
     &lt;legend&gt;Send Message&lt;/legend&gt;
 
-    &lt;% form_for :message, :url =&gt; user_messages_path do |form| %&gt;
+    &lt;% form_for @message do |form| %&gt;
       &lt;p&gt;
         &lt;label for=&quot;message_recepient&quot; &gt;Recipient:&lt;/label&gt;&lt;br /&gt;
         &lt;%= form.text_field :recipient, :size =&gt; 40, :value =&gt; @message.recipient %&gt;</diff>
      <filename>generators/messages/templates/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 quentin:
   id: 1
-  name: Quentin Quagg
+  # name: Quentin Quagg
   login: quentin
   email: quentin@example.com
   salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd
@@ -19,7 +19,7 @@ aaron:
 sam:
   id: 3
   login: sam
-  name: Sam Schroeder
+  #name: Sam Schroeder
   email: samuelschroeder@gmail.com
   salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd
   crypted_password: 00742970dc9e6319f8019fd54864d3ea740f04b1 # test
@@ -31,7 +31,7 @@ sam:
 abby:
   id: 4
   login: abby
-  name: Abigail Schroeder
+  # name: Abigail Schroeder
   email: abby@hasnoemail.com
   salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd
   crypted_password: 00742970dc9e6319f8019fd54864d3ea740f04b1 # test
@@ -43,7 +43,7 @@ abby:
 catie:
   id: 5
   login: catie
-  name: Catherine Schroeder
+  # name: Catherine Schroeder
   email: catie@hasnoemail.com
   salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd
   crypted_password: 00742970dc9e6319f8019fd54864d3ea740f04b1 # test</diff>
      <filename>generators/messages/templates/users.yml</filename>
    </modified>
    <modified>
      <diff>@@ -51,7 +51,8 @@ module ProtonMicro
                    :foreign_key =&gt; &quot;sender_id&quot;,
                    :conditions =&gt; &quot;sender_deleted IS NULL&quot;,
                    :order =&gt; &quot;created_at DESC&quot;
-                   
+          
+          # FIXME : true is not valid with sqlite3 (should be 't'). 
           has_many :trashbin_messages,  
                    :class_name =&gt; &quot;Message&quot;, 
                    :foreign_key =&gt; &quot;receiver_id&quot;,</diff>
      <filename>lib/restful_easy_messages_system.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c98d77200a968dcc85beb0eff38cddf57ed33280</id>
    </parent>
  </parents>
  <author>
    <name>Philippe Lafoucriere</name>
    <email>Philippe.Lafoucriere@gmail.com</email>
  </author>
  <url>http://github.com/sschroed/restful_ezm/commit/05041739ff60fc99d606f74876eb1127ac7d07a8</url>
  <id>05041739ff60fc99d606f74876eb1127ac7d07a8</id>
  <committed-date>2008-06-27T08:20:01-07:00</committed-date>
  <authored-date>2008-06-27T08:20:01-07:00</authored-date>
  <message>Removed routes related to user (rezm_user used instead)
Use Rails 2 new form_for syntax
Corrected bug in atom feed (inbox)
Force remove all layouts for atom, since using a layout in controller will break the atom feed.
updated readme
fixed users.yml (restful_authentication does not provide 'name' field for users
added fixme message</message>
  <tree>84e7a7dfb754f6e1e9362e5d997cfcc64e9211a4</tree>
  <committer>
    <name>Philippe Lafoucriere</name>
    <email>Philippe.Lafoucriere@gmail.com</email>
  </committer>
</commit>
