Sha256: a520029a6775a058e24fb02933ee1903c0f5bb7bbfb0deb07fc41e156bc8d539

Contents?: true

Size: 978 Bytes

Versions: 11

Compression:

Stored size: 978 Bytes

Contents

Sunrise::Engine.routes.draw do
  root :to => "dashboard#index"
  
  match "/services", :to => "shared#services", :as => "services"
  match "/dashboard/p/:page", :to => "dashboard#index", :page => /\d+/
  
  resource :settings, :only => [:edit, :update]
  
  controller "manager" do
    scope ":model_name" do
      match "/", :to => :index, :as => "index", :via => [:get, :post]
      match "/export.:format", :to => :export, :as => "export"
      match "/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

11 entries across 11 versions & 1 rubygems

Version Path
sunrise-cms-0.5.0.rc3 config/routes.rb
sunrise-cms-0.5.0.rc2 config/routes.rb
sunrise-cms-0.5.0.rc1 config/routes.rb
sunrise-cms-0.4.2 config/routes.rb
sunrise-cms-0.4.1 config/routes.rb
sunrise-cms-0.4.0 config/routes.rb
sunrise-cms-0.3.3 config/routes.rb
sunrise-cms-0.3.2 config/routes.rb
sunrise-cms-0.3.1 config/routes.rb
sunrise-cms-0.3.0 config/routes.rb
sunrise-cms-0.3.0.rc2 config/routes.rb