Sha256: df0b985946c3f264b8b0a11eed4bb0f300c230cfb836c891b4c25ab6b724f998

Contents?: true

Size: 810 Bytes

Versions: 2

Compression:

Stored size: 810 Bytes

Contents

Rails.application.routes.draw do |map|
  
  match 'login' => 'user_sessions#new'
  match 'logout' => 'user_sessions#destroy'
  match 'signup' => 'users#new'
  #match 'sitemap(.:format)' => 'pages#sitemap'
  
  resources :users
  resource  :user_session
  
  match "/:year/:month/:day/:id" => "sb/posts#show", :constraints => { :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ }
  match "/:year(/:month(/:day))" => "sb/posts#index", :constraints => { :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ }
  match "/tag/:id" => 'sb/posts#tag'
  
  match 'admin' => 'sb/admin/posts#index'
  namespace :sb do
    resources :posts
    namespace :admin do
      resources :posts do
        get :publish, :on => :member
      end
    end
  end
  
  root :to => "sb/posts#index"
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
santey_blog-0.2.1 config/routes.rb
santey_blog-0.2.0 config/routes.rb