Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (32 sloc) 3.39 KB
# Add these names routes to your project's config/routes.rb
map.resources :messages,
:collection => {:destroy_selected => :post,
:inbox => :get,
:outbox => :get,
:trashbin => :get},
:member => {:reply => :get}
# Here is a list of all the route created by Restful_EZM. Rake routes was used to generate this
inbox_messages GET /messages/inbox {:action=>"inbox", :controller=>"messages"}
formatted_inbox_messages GET /messages/inbox.:format {:action=>"inbox", :controller=>"messages"}
outbox_messages GET /messages/outbox {:action=>"outbox", :controller=>"messages"}
formatted_outbox_messages GET /messages/outbox.:format {:action=>"outbox", :controller=>"messages"}
trashbin_messages GET /messages/trashbin {:action=>"trashbin", :controller=>"messages"}
formatted_trashbin_messages GET /messages/trashbin.:format {:action=>"trashbin", :controller=>"messages"}
destroy_selected_messages POST /messages/destroy_selected {:action=>"destroy_selected", :controller=>"messages"}
formatted_destroy_selected_messages POST /messages/destroy_selected.:format {:action=>"destroy_selected", :controller=>"messages"}
messages GET /messages {:action=>"index", :controller=>"messages"}
formatted_messages GET /messages.:format {:action=>"index", :controller=>"messages"}
POST /messages {:action=>"create", :controller=>"messages"}
POST /messages.:format {:action=>"create", :controller=>"messages"}
new_message GET /messages/new {:action=>"new", :controller=>"messages"}
formatted_new_message GET /messages/new.:format {:action=>"new", :controller=>"messages"}
edit_message GET /messages/:id/edit {:action=>"edit", :controller=>"messages"}
formatted_edit_message GET /messages/:id/edit.:format {:action=>"edit", :controller=>"messages"}
reply_message GET /messages/:id/reply {:action=>"reply", :controller=>"messages"}
formatted_reply_message GET /messages/:id/reply.:format {:action=>"reply", :controller=>"messages"}
message GET /messages/:id {:action=>"show", :controller=>"messages"}
formatted_message GET /messages/:id.:format {:action=>"show", :controller=>"messages"}
PUT /messages/:id {:action=>"update", :controller=>"messages"}
PUT /messages/:id.:format {:action=>"update", :controller=>"messages"}
DELETE /messages/:id {:action=>"destroy", :controller=>"messages"}
DELETE /messages/:id.:format {:action=>"destroy", :controller=>"messages"}