Skip to content
This repository
Newer
Older
100644 29 lines (26 sloc) 1.158 kb
a8f5fb32 »
2011-11-03 roadmap stub
1 RailsAdmin::Engine.routes.draw do
2 scope "history", :as => "history" do
3 controller "history" do
4 match "/:model_name", :to => :for_model, :as => "model"
5 match "/:model_name/:id", :to => :for_object, :as => "object"
6 end
7 end
8
9 controller "main" do
10 match "/", :to => :dashboard, :as => "dashboard"
11 scope ":model_name" do
12 match "/", :to => :index, :as => "index", :via => [:get, :post]
13 match "/export", :to => :export, :as => "export"
14 get "/new", :to => :new, :as => "new"
15 post "/new", :to => :create, :as => "create"
16 post "/bulk_action", :to => :bulk_action, :as => "bulk_action"
17 post "/bulk_destroy", :to => :bulk_destroy, :as => "bulk_destroy"
18 scope ":id" do
19 get "/", :to => :show, :as => "show"
20 get "/edit", :to => :edit, :as => "edit"
21 put "/edit", :to => :update, :as => "update"
22 get "/delete", :to => :delete, :as => "delete"
23 delete "/delete", :to => :destroy, :as => "destroy"
24 end
25 end
26 end
27 end
28
Something went wrong with that request. Please try again.