Sha256: 8b6c7704dd5e9faadc48f9f42d5d564c5808793095a014d09f2053d1669e1907
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
Contents
Rails.application.routes.draw do scope(:module => "Blog") do constraints( :year => /\d{4}/, :month => /\d{1,2}/, :day => /\d{1,2}/ ) do get '/blog/:year(/:month(/:day))' => 'posts#index', :as => :post_date get '/blog/:year/:month/:day/:id' => 'posts#show', :as => :full_post get '/blog/category/:id' => 'post_categories#show', :as => :post_category end get '/blog/search/:query', :to => 'posts#search', :as => :search_posts, :query => /.*/ resources :posts, :path => 'blog' do get :archive, :on => :collection end namespace :admin do resources :posts do resources :images, :controller => "post_images" do collection do post :update_positions end end resources :products, :controller => "post_products" resources :categories, :controller => "post_categories" end resource :disqus_settings end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_essential_blog-0.1.0 | config/routes.rb |
spree_essential_blog-0.1.0.rc1 | config/routes.rb |