search for: uploaded_avatar_data

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

2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
...blic_filename}")[0] chopped = img.crop(Magick::ForgetGravity, x1, y1, width, height) path = "#{RAILS_ROOT}/public/images/avatars/yings/ #{self.id}_thing.png" chopped = chopped.write(path) #create_or_update_thumbnail(path, suffix, *size) end avatar_system.rb attr_accessor :uploaded_avatar_data def save_with_avatar(params) avatar = Avatar.new begin self.transaction do if params[:uploaded_avatar_data] && params[:uploaded_avatar_data].size > 0 avatar.uploaded_data = (params[:uploaded_avatar_data]) avatar.thumbnails...