ruby on rails - Cloning assosiations with attached file -



ruby on rails - Cloning assosiations with attached file -

i have got object wich using pattern. objects has got number of associations. 1 of association attach. object has many attaches. can clone all, know, db data, how should files, attached object.

i can imagine solutions, of them little hacky , don't native.

for illustration can add together virtual attribute temprorary store ids of attaches while cloning object.

what's solution have manage attachments? if paperclip, has callback handles remove/cloning real files on filesystem level.

ruby-on-rails ruby clone attachment

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -