Displaying 2 results from an estimated 2 matches for "attachemnt_fu".
Did you mean:
attachement_fu
2009 Jan 19
3
Attachment_fu: save to a default format
Hi, would anyone have any advices on the next?
I allow users to upload images to my app. I''m using attachment_fu and
MiniMagick.
There''s two things that I''d like to do:
1- No matter what format the original file is I''d like to save it in jgp
format.
2- I want to keep all images limited to say 1000px width, so resize if
they are bigger.
Is there a way to do
2007 Sep 18
2
Making attachment_fu polymorphic
...as
## you normally would for attachment_fu,except use
has_polymorphic_attachment instead of
## has_attachment and validates_as_polymorphic_attachment instead
of validates_as_attachment.
## Write the configuration params just as you normally would. For
more info on
## setting up attachemnt_fu see Mike Clark''s excellent tutorial:
## http://clarkware.com/cgi/blosxom/2007/02/24
## 3. Give your Attachment_kung-ed Model the correct has_many for
polymorphism
## (I used: has_many :attachments, :as => :attachable);
## 4. Set the belongs_to and table_name methods to ins...