I'm using paperclip in this Rails 2.3.8 project. What I'm looking to do is rename all the images so they fit the :url => "/assets/:class/:id_partition/:attachment/:style.:extension" from my model. I had about 30,000 records for this model and when changing to start using the :id_partition, I changed
:url => "/assets/:class/:id/:attachment/:style.:extension" to :url => "/assets/:class/:id_partition/:style_:basename.:extension" without thinking about what I was actually doing. I now changed it back to :url => "/assets/:class/:id_partition/:attachment/:style.:extension" but now I have about 10,000 images that are named wrong and not showing. I know there is a reprocess! method in paperclip, but it doesn't seem to rename the images. Is there already a rake task, or something that will do this? Essentially, I would like to do MyModel.all.each { |model| model.image.set_all_the_styles_to_the_correct_name! } Thanks, ~Jeremy -- 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.