OSDN Git Service

t#32402:add file prof
[pettanr/pettanr.git] / app / controllers / ground_pictures_controller.rb
index 9cf4159..16989a0 100644 (file)
@@ -26,6 +26,7 @@ class GroundPicturesController < ApplicationController
     @ground_picture = GroundPicture.show(params[:id], [@user, @admin])
     respond_to do |format|
       format.html # show.html.erb
+      format.prof  { render :template => 'top/prof', :layout => true }
       format.json { render json: @ground_picture.to_json(GroundPicture.show_json_opt) }
     end
   end