public
Description: Rails plugin for uploading images as resources, with support for resizing, text stamping, and other special effects.
Homepage: http://wiki.github.com/Squeegy/fleximage
Clone URL: git://github.com/Squeegy/fleximage.git
default_image_path is now relative to RAILS_ROOT
Squeegy (author)
Sat Apr 19 15:23:50 -0700 2008
commit  1e45f1e75cb4297bfe5db13084be614c8217fc43
tree    ebf14df17235f8153e56f31f0376968b0bd7187d
parent  137683d64d25c9b842ce95b4a5d842165e585810
...
444
445
446
447
 
448
449
450
...
444
445
446
 
447
448
449
450
0
@@ -444,7 +444,7 @@ module Fleximage
0
         def master_image_not_found
0
           # Load the default image
0
           if self.class.default_image_path
0
-            @output_image = Magick::Image.read(self.class.default_image_path).first
0
+            @output_image = Magick::Image.read("#{RAILS_ROOT}/#{self.class.default_image_path}").first
0
           
0
           # No default, not master image, so raise exception
0
           else

Comments