What do you mean by software? You can configure the method that will follow the path in the line
my_model_instance = MyModel.new file = File.open(file_path) my_model_instance.attachment = file file.close my_model_instance.save!
#attachment comes from our clip declaration in our model. In this case, our model looks like
class MyModel < ActiveRecord::Base has_attached_file :attachment end
We performed similar operations when loading the project.
theIV Sep 09 '09 at 4:18 2009-09-09 04:18
source share