diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index 1faf77e..d3fed76 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -192,7 +192,7 @@ class ArchivesController < ApplicationController file.save redirect_to file.file.url and return end - render :nothing => true + render :file => "#{Rails.root}/app/views/errors/404.html", :layout => false, :status => :not_found end def group_by_category