Updated import data with pages working

This commit is contained in:
saurabhbhatia 2013-09-14 09:36:09 +08:00
parent 249644e72c
commit a93945cd45
1 changed files with 4 additions and 0 deletions

View File

@ -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