Permalink
Browse files

solved routes 404 error

  • Loading branch information...
1 parent 3158f10 commit 95f8076ce1ee32eb3022d3aefd8545e59384bd66 @kishiamy committed Jun 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 config/routes.rb
View
@@ -12,10 +12,12 @@
match "admin/groups" => "admin#manage_groups", :as => :user_list
match "admin/groups/:id/edit" => "admin#update", :via => :put, :as => :edit_user_group
+ match '*dummy', to: "error#error_404"
end
root to: "pages#index", locale: I18n.default_locale
- match '*dummy', to: "error#error_404"
+ # Capture invalid pages
+ match '*dummy', to: "error#error_404", locale: I18n.default_locale.to_s
end

0 comments on commit 95f8076

Please sign in to comment.