Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9f4d1b5480
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 35 lines (32 sloc) 3.474 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# 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"}
Something went wrong with that request. Please try again.