Hi,
i would like to create test data for my client using migration.
for example:
Model.create(
:name => ‘john’,
:age => ‘28’
)
how would one do that for the file_column “image” field? i have tried to
give the name of the file XXXX.jpg, but i get the following error
message:
“Do not know how to handle a string with value ‘XXXXX.jpg’ that was
passed to a file_column. Check if the form’s encoding has been set to
‘multipart/form-data’.”
thanks a lot