uploading modelo para sistemas com jquery, fpdf, activerecord and smarty