Rails add user avatar using api in active storage. Leave a Comment / Uncategorized / By chiku in controller:- @user.avatar.attach(params[:avatar]) in model:-has_one_attached :avatar Related