Thank you for the help guys (specially @arieljuod) i figured out the answer it was pretty simple :
return rails_blob_path(object.user.avatar, only_path: true)
Here object is of Userspublication!
(The guy who down voted this question if you cant answer and can’t even bother to help in understanding whats wrong with it “suck it”!!)
solved How to get rails_blob_url for the avatar attached to User Model from Userspublication?