Start support for reading data back from the database.
[quanlib.git] / main.rb
diff --git a/main.rb b/main.rb
index bc175fbf51ae33205a37735d1390872a3ea630e1..596e11ff526fec0f09227bda8bcad927ab163180 100644 (file)
--- a/main.rb
+++ b/main.rb
@@ -64,7 +64,7 @@ open(outputDir + '/index.html', 'w') do |fd|
     image = nil
     if nil != book.cover
       imageCount += 1
-      (path, mimeType) = book.cover.writeImage(outputDir, 'image' + imageCount.to_s)
+      (path, mimeType) = book.cover.write_image(outputDir, 'image' + imageCount.to_s)
       image = '<img height="200px" src="' + path + '"/>'
     else
       image = '(No cover image)'