Skip to content
Browse files

Start to change routes to match resources way

  • Loading branch information...
1 parent 5bdade7 commit ead0c9540dcefac45aa8d85e822e4ab3bef02701 Yannick Francois committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/routes.rb
View
2 config/routes.rb
@@ -18,7 +18,7 @@
match ':year', :to => 'articles#index', :year => /\d{4}/, :as => 'articles_by_year', :format => false
match ':year/page/:page', :to => 'articles#index', :year => /\d{4}/, :as => 'articles_by_year_page', :format => false
- match 'admin', :to => 'admin/dashboard#index', :format => false, :as => :admin_dashboard
+ resources :dashboard, only: [:index], module: 'admin', path: '/admin'
match 'articles.:format', :to => 'articles#index', :constraints => {:format => 'rss'}, :as => 'rss'
match 'articles.:format', :to => 'articles#index', :constraints => {:format => 'atom'}, :as => 'atom'

0 comments on commit ead0c95

Please sign in to comment.
Something went wrong with that request. Please try again.