How to change user avatar to a picture that is in app/assets/images
with carrierwave?
I have avatar_uploader.rb
.
In my application there are several avatars to choose from, when I click on one of them, I send ajax request to controller with name of the picture.
What method do I need to use in controller to change user avatar to this picture?
I know the user.remote_avatar_url
method for changing avatar using url of picture.
But I need a picture from assets/images/