Hi,

Wondering is there a way in paperclip to rename images as the are being
saved to
image_id+count ?

my code in image.rb model

  has_attached_file :data, :styles => { :large => "371*251>", :small =>
"72*72>"},
                    :url  => "/assets/:id",
                    :path =>
":rails_root/assets/docs/:id/:style/:basename.:extension"

  belongs_to :attachable, :polymorphic => true

I am attaching file using javascript.

What i am trying to do is when i want to call back images into array I
want frist image to be large and second and third to be small. So if i
could change name of images to be image_id plus count in array as name i
would know that id_1 is large and so on.
-- 
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-t...@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