diff --git a/lib/spree/core/controller_helpers/common.rb b/lib/spree/core/controller_helpers/common.rb index 78625c0bd8..27684873b4 100644 --- a/lib/spree/core/controller_helpers/common.rb +++ b/lib/spree/core/controller_helpers/common.rb @@ -42,7 +42,7 @@ module Spree respond_to do |type| type.html { render status: :not_found, - file: "#{::Rails.root}/public/404", + file: Rails.root.join("public/404.html"), formats: [:html], layout: nil }