I am using is_attachment plugin, but I will always end up with this
RuntimeError in PostsController#create
which was caused by:
version.filename = file_name_for_version(version_name)
RecordInvalid was raised by save! because is invalid.
Does anyone know why? I am uploading an image so it should validate
Any help would be most welcome