config/routes.rb in ecm_blog-1.0.2 vs config/routes.rb in ecm_blog-1.2.0
- old
+ new
@@ -1,8 +1,10 @@
Ecm::Blog::Engine.routes.draw do
localized do
scope :ecm_blog_engine do
- resources :posts, only: [:index, :show]
+ resources :posts, only: [:index, :show] do
+ get 'page/:page', action: :index, on: :collection
+ end
root to: 'posts#index'
end
end
end