Sha256: 282f907f9cadd38952d50e1608707237a0d91471c08bada4cbb2ba350a69eb4c
Contents?: true
Size: 698 Bytes
Versions: 2
Compression:
Stored size: 698 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', :as => :blog # 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.4 | config/routes.rb |
rails_blog_engine-0.0.3 | config/routes.rb |