fixed problem with attachements in rails 2.3.15