OSDN Git Service

t#29671:fix my panel list as json
[pettanr/pettanr.git] / app / controllers / home_controller.rb
index 9d296c1..0384ec4 100644 (file)
@@ -86,7 +86,7 @@ class HomeController < ApplicationController
 
     respond_to do |format|
       format.html # index.html.erb
-      format.json { render json: @panels.to_json() }
+      format.json { render text: Panel.list_as_json_text(@panels) }
     end
   end