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 => “371251>", :small =>
:url => “/assets/:id”,
:path =>

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs