Sha256: b39a5ea19fd5a9b009a6fae09448cc5d4cceff9d8ddb4e79a88323a68969f175
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
RailsBlogEngine::Engine.routes.draw do # Atom feed. get 'posts.:format' => 'posts#index', :constraints => { :format => 'atom' } # Extra pages. get 'page/:page' => 'posts#index', :constraints => { :page => /\d+/ } # Home page. root :to => 'posts#index' # Public article pages. get(':year/:month/:day/:permalink' => 'posts#show', :constraints => { :year => /\d{4,}/, :month => /\d\d/, :day => /\d\d/ }) # A regular resource interface for everything else. resources :posts, :except => [:index, :show, :delete] do resources :comments, :only => [:create] do member do post :mark_as_ham post :mark_as_spam end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_blog_engine-0.0.2 | config/routes.rb |
rails_blog_engine-0.0.1 | config/routes.rb |