Restful Easy Messages plugin

Plugin details

Restful_Easy_Messages is the second version of this messaging plugin that provides a set of methods and views to send messages between users in a RESTful way.

Websitehttp://samuelschroeder.com/2007/10/16/restful_easy_messages/ Repositoryhttp://restfulezm.rubyforge.org/svn/tags/0.7/restful_easy_messages/ Tags Messages LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://restfulezm.rubyforge.org/svn/tags/0.7/restful_easy_messages/

Add these names routes to your project's config/routes.rb

map.resources :users do |user|
  user.resources :messages,
                 :collection => {:destroy_selected => :post,
                                 :inbox            => :get,
                                 :outbox           => :get,
                                 :trashbin         => :get},
                 :member     => {:reply => :get}
end



Generate your views

script/generate messages erb


If you prefer to use Haml replace 'erb' above with 'haml'

Run the migration

rake db:migrate



Add the following to your user model

class User < ActiveRecord::Base  
   restful_easy_messages

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (2 older versions) | Last edited by: scott, about 1 year ago