From 288956f9fbdd8f926fca4de77fed76e66c45a78c Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Tue, 16 Apr 2013 01:22:39 +0600 Subject: [PATCH] [#42] fix error with html format --- app/controllers/api/v1/issues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/issues_controller.rb b/app/controllers/api/v1/issues_controller.rb index 60de60f77..439ed8ddf 100644 --- a/app/controllers/api/v1/issues_controller.rb +++ b/app/controllers/api/v1/issues_controller.rb @@ -95,7 +95,7 @@ class Api::V1::IssuesController < Api::V1::BaseController @issues = @issues.where('created_at >= to_timestamp(?)', params[:since]) if params[:since] =~ /\A\d+\z/ @issues.paginate(paginate_params) - render 'index' + respond_with @issues end def render_json(action_name, action_method = nil)