Open vovs03 opened 4 years ago
:ru: Как перенаправить на 404 в Rails?
# routes.rb get '*unmatched_route', to: 'main#not_found' # main_controller.rb def not_found render :file => "#{Rails.root}/public/404.html", :status => 404, :layout => false end
🍏 lucky!
How to redirect to a 404 in Rails?
:ru: Как перенаправить на 404 в Rails?
🍏 lucky!