OSDN Git Service

Merge branch 'v03_test' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v03_test
[pettanr/pettanr.git] / app / controllers / common_licenses_controller.rb
index 674e161..08c7dd0 100644 (file)
@@ -1,3 +1,4 @@
+#コモンライセンス
 class CommonLicensesController < ApplicationController
   layout 'test' if Pettanr::TestLayout
   before_filter :authenticate_user!, :only => [:index, :show]
@@ -67,6 +68,7 @@ class CommonLicensesController < ApplicationController
         format.html { redirect_to :action => :list }
         format.json { render text: 'ok', status: :created }
       else
+        #@errorsがNILならJson展開できない全体異常
         format.html { render action: "result" }
         format.json { render json: @errors, status: :unprocessable_entity }
       end