OSDN Git Service

fix new element dialog
[pettanr/pettanr.git] / app / controllers / panels_controller.rb
index 376c68c..6c9e438 100644 (file)
@@ -143,6 +143,7 @@ class PanelsController < ApplicationController
         updated_html_format format
         updated_json_format format
       else
+      p @item.errors
         format.html {
           flash[:notice] = I18n.t('flash.notice.not_updated', :model => @my_model_class.model_name.human)
           @editor = Editor::PanelEditor.new @item, @operators