From edc9d75df7dc231300a1a1d453f638f1ea9fb179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= <me@mrzyx.de> Date: Fri, 7 Sep 2012 01:55:36 +0200 Subject: [PATCH] remove deprecation warning about outdated render call --- app/controllers/people_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index e27778e056..5ed13eaf28 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -13,7 +13,8 @@ class PeopleController < ApplicationController respond_to :js, :only => [:tag_index] rescue_from ActiveRecord::RecordNotFound do - render :file => Rails.root.join('public', '404.html').to_s, :layout => false, :status => 404 + render :file => Rails.root.join('public', '404').to_s, + :format => :html, :layout => false, :status => 404 end helper_method :search_query -- GitLab