Easy Messages plugin

Plugin details

Easy_Messages adds private messaging between the users on your site, keeping them in-site instead of leaving to check their email.

Websitehttp://samuelschroeder.com/2007/07/18/easy_messages/ Repositorysvn://rubyforge.org/var/svn/easymessages/branches/RB-0.51 Author Matt Beedle Tags message LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install svn://rubyforge.org/var/svn/easymessages/branches/RB-0.51

Now you have to do three manual changes to your code. First, add "easy_messages" to apps/model/user.rb.

   1. class User < ActiveRecord::Base  
   2.   easy_messages  
   3.   # The rest of your class  
   4.   #  
   5.   #  
   6. end  


Second, add "authenticated_commands" to apps/controllers/account_controller.rb.

   1. class AccountController < ApplicationController  
   2.   authenticated_commands  
   3.   # The rest of your class  
   4.   #  
   5.   #  
   6. end  


Finally, you need to copy the named routes from vendor/plugins/easy_messages/config/easy_messages_named_routes.rb to config/routes.rb. view plainprint?

   1. # Add these names routes to your project's config/routes.rb  
   2.   
   3. map.with_options :controller => 'account' do |m| 
   4. m.compose '/account/message/send', :action => 'send_message' 
   5. m.delete 'account/message/delete/:id', :action => 'delete_message' 
   6. m.inbox '/account/inbox', :action => 'inbox' 
   7. m.outbox '/account/outbox', :action => 'outbox' 
   8. m.trashbin '/account/trashbin', :action => 'trash_bin' 
   9. m.reply '/account/message/reply/:id', :action => "reply_to_message" 
  10. m.view '/account/message/view/:id', :action => 'view_message'  
  11. end  


That should be it for the setup. So start your development server and point your brower to..

http://localhost:3000/account/inbox


There is also a complete RDoc listing in vendor/plugins/easy_messages/doc

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: scott, 9 months ago