diff --git a/config/routes.rb b/config/routes.rb index f39a608..007eab7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -31,7 +31,7 @@ get 'admin/posts/:state', to: 'crowdblog/admin/posts#index', - filter: /finished|reviewed/, + constraints: { state: /finished|reviewed/ }, as: :admin_posts_by_state mount Crowdblog::Engine => '/'