Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate 404, 500, 422 errors pages #9532

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@

# Mount Spree's routes
mount Spree::Core::Engine, :at => '/'

# Errors controller
match '/404' => 'errors#not_found', via: :all
match '/500' => 'errors#internal_server_error', via: :all
match '/422' => 'errors#unprocessable_entity', via: :all
end
41 changes: 0 additions & 41 deletions public/404.html

This file was deleted.

38 changes: 0 additions & 38 deletions public/422.html

This file was deleted.

43 changes: 0 additions & 43 deletions public/500.html

This file was deleted.