Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

How do I get avatar.variant(size: "") to work using aws on production?

Rails • Asked by Luis Daniel Fonseca

I can't get variant(size: "") to work while using a cloud provider in production.

I need to user.avatar.service_url.split("?").first to get the right path for the img but when I do this, I can't use .variant() because that path is a string.

Any idea how I overcome this.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.