Sha256: 12b3e922ffd997185ac8f25021e11bca83e1f98caf7e85b1929cd51f57017861
Contents?: true
Size: 886 Bytes
Versions: 2
Compression:
Stored size: 886 Bytes
Contents
module ActionDispatch::Routing class Mapper def merrycms_routes namespace :admin do resources :users resources :pages do member do get 'publish' get 'unpublish' get 'archive' get 'unarchive' end end resources :categories do member do get 'sort' end collection do get 'sorting' end end resources :translations do collection do get 'dump' end end match 'translations/pending/:language' => 'translations#pending', :as => 'pending_translations' match 'translations/all/:language' => 'translations#all', :as => 'all_translations' root :to => 'pages#index' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merrycms-0.1.2 | lib/merrycms/rails/routes.rb |
merrycms-0.1.1 | lib/merrycms/rails/routes.rb |