Hello.
I have a simple multipart-form that uploads images and saves record in
the database. I have a model that uses the RMagick plugin to save the
images.

My model looks like this:
class Drawing < ActiveRecord::Base

  has_attachment :storage => :file_system,
                 :resize_to => '670x503',
                 :thumbnails => { :thumb => '160x120', :tiny => '50>' },
                 :max_size => 5.megabytes,
                 :content_type => :image,
                 :processor => 'Rmagick'
  validates_as_attachment
  acts_as_rateable


  belongs_to :member
  belongs_to :drawingcategory
  has_many :drawingcomments
end


I also have a drawing-tool done in Flash. The idea is to draw in the
flash-application and then save the drawing online. I have functionality
so I can get the image saved on the server, but I do not know how I can
connect that image to this rmagick-plugin and get the information about
the drawing saved in the same table as the drawings uploaded through the
multipart-form.

I have looked everywhere and tried everything. Anyone who can help me?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to