OSDN Git Service

t#32471:add profiles
[pettanr/pettanr.git] / app / controllers / speech_balloons_controller.rb
index 8bfe140..d79e81f 100644 (file)
@@ -28,12 +28,11 @@ class SpeechBalloonsController < ApplicationController
   end
   
   def show
-    @speech_balloon = SpeechBalloon.show(params[:id], [@user, @admin])
+    @item = SpeechBalloon.show(params[:id], [@user, @admin])
     respond_to do |format|
       format.html # show.html.erb
-      format.prof  { render :template => 'top/prof', :layout => true }
-      format.prof  { render :template => 'top/prof', :layout => true }
-      format.json { render json: @speech_balloon.to_json(SpeechBalloon.show_json_opt) }
+      format_prof format
+      format.json { render json: @item.to_json(SpeechBalloon.show_json_opt) }
     end
   end