Commit a54d3840 authored by Uģis Ozols's avatar Uģis Ozols
Browse files

Merge pull request #119 from allspiritseve/2-0-stable

Specify regex for year and month within archive route
parents 401d3ecb 09fb5c78
Refinery::Core::Engine.routes.draw do
namespace :news do
root :to => "items#index"
get 'archive/:year(/:month)', :to => 'items#archive', :as => 'items_archive'
get 'archive/:year(/:month)', :to => 'items#archive', :as => 'items_archive', :constraints => { :year => /\d{4}/, :month => /\d{1,2}/ }
resources :items, :only => [:show, :index], :path => ''
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment