Sha256: 7e2640072ab51150c6b2b5458b63373c81a63d25a5c13de5b20b2fe2534642f3
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 Bytes
Contents
Sunrise::Engine.routes.draw do root :to => "dashboard#index" get "/services", :to => "shared#services", :as => "services" get "/dashboard/p/:page", :to => "dashboard#index", :page => /\d+/ resource :settings, :only => [:edit, :update] controller "manager" do scope ":model_name" do get "/", :to => :index, :as => "index", :via => [:get, :post] get "/export.:format", :to => :export, :as => "export" post "/sort", :to => :sort, :as => "sort" get "/new", :to => :new, :as => "new" post "/new", :to => :create, :as => "create" delete "/mass_destroy", :to => :mass_destroy, :as => "mass_destroy" scope ":id" do get "/", :to => :show, :as => "show" get "/edit", :to => :edit, :as => "edit" patch "/edit", :to => :update, :as => "update" get "/delete", :to => :delete, :as => "delete" delete "/delete", :to => :destroy, :as => "destroy" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-0.7.0.rc2 | config/routes.rb |
sunrise-cms-0.7.0.rc1 | config/routes.rb |