search for: upload_blob

Displaying 1 result from an estimated 1 matches for "upload_blob".

Did you mean: unload_blob
2006 Jul 25
1
How do I validate using associated objects?
...; ActiveRecord::Base belongs_to :board has_many :uploads end class Upload < ActiveRecord::Base belongs_to :comment end class Image < Upload before_create :create_image before_create :create_thumbnail def create_image @image = Magick::ImageList.new.from_blob(@upload_blob) self[:image_width] = @image.columns self[:image_height] = @image.rows end def create_thumbnail @thumbnail = Magick::ImageList.new.from_blob(@image[0].to_blob) if comment.parent_id == nil x = comment.board.setting(:parent_thumbnail_at_width) y = comment.board.set...