Sha256: a95676e3cf8c58c5df24c995d493588c3c2e3e8a98896682677780fdc367a55a

Contents?: true

Size: 968 Bytes

Versions: 15

Compression:

Stored size: 968 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"
      get "/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"
        put "/edit", :to => :update, :as => "update"
        get "/delete", :to => :delete, :as => "delete"
        delete "/delete", :to => :destroy, :as => "destroy"
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sunrise-cms-0.6.8 config/routes.rb
sunrise-cms-0.6.7 config/routes.rb
sunrise-cms-0.6.6 config/routes.rb
sunrise-cms-0.6.5 config/routes.rb
sunrise-cms-0.6.4 config/routes.rb
sunrise-cms-0.6.3 config/routes.rb
sunrise-cms-0.6.2 config/routes.rb
sunrise-cms-0.6.1 config/routes.rb
sunrise-cms-0.6.0 config/routes.rb
sunrise-cms-0.5.3 config/routes.rb
sunrise-cms-0.5.2 config/routes.rb
sunrise-cms-0.5.1 config/routes.rb
sunrise-cms-0.5.0 config/routes.rb
sunrise-cms-0.5.0.rc5 config/routes.rb
sunrise-cms-0.5.0.rc4 config/routes.rb