From a93945cd457c713e1621de7cf082278bd423c2f6 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Sat, 14 Sep 2013 09:36:09 +0800 Subject: [PATCH] Updated import data with pages working --- app/controllers/admin/import_data_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/admin/import_data_controller.rb b/app/controllers/admin/import_data_controller.rb index b02899acc..fd4e57a9f 100644 --- a/app/controllers/admin/import_data_controller.rb +++ b/app/controllers/admin/import_data_controller.rb @@ -251,6 +251,8 @@ class Admin::ImportDataController < OrbitBackendController content: (cp_node>"content").text } end + + @i = 0 if @pages.present? @pages.each do |b| @@ -275,6 +277,8 @@ class Admin::ImportDataController < OrbitBackendController else @page.content = b[:content] end + @i += 1 + Rails.logger.info"@@@@@@@@@@@@@@@@@@@@@@@@"+@i.inspect @page.save end else