OSDN Git Service

t#32402:add file prof
[pettanr/pettanr.git] / app / controllers / speeches_controller.rb
index 1095fdb..24ca971 100644 (file)
@@ -25,6 +25,7 @@ class SpeechesController < ApplicationController
     @speech = Speech.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: @speech.to_json(Speech.show_json_opt) }
     end
   end