Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
伙计们。
如何用拇指将一个模型复制到另一个模型?
我只用
new_image.image = File.open(old_image.image.current_path)
但是,之前被剪掉的拇指,是从头开始制作的。我可以做什么?
您想复制模型而无需重新生成拇指?CarrierWave 不提供执行此操作的 API,因此您将不得不手动操作,这可能会很痛苦。让carrierwave重新生成拇指可能会更好。