Sha256: 92e36a9fd5cc51b523aaeec192814569e875df1438210686a2db89496b861296
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
Miniblog::Engine.routes.draw do root :to => 'posts#index' resources :posts, only: :show get 'sitemap.(:format)', to: 'sitemap#show' namespace :admin do resources :authors, only: :index match 'posts/:state', :to => 'posts#index', :constraints => { :state => /(published|drafted)/ }, :as => 'posts_by_state', :via => :get match 'posts/:id/:transition', :to => 'transitions#create', :constraints => { :transition => /(draft|finish|review|publish)/ }, :as => 'post_transitions', :via => :post resources :posts do resources :assets resource :state, only: :update end resources :preview, only: :show root :to => 'posts#index' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
miniblog-1.0.2 | config/routes.rb |
miniblog-1.0.1 | config/routes.rb |
miniblog-1.0.0 | config/routes.rb |