Ruby on Rails Sunday, February 25, 2018

Hi, I've got 2 uploaders in my app.  They are both uploading to aws s3 no problems.

I'm able to display my photos on my show page using, but having no luck with my avatar.

<%= image_tag @photo.image_url(:thumb).to_s %>

<%= image_tag @user.image_url(:thumb).to_s %>


I don't even know where .image_url comes from? It's not saved in the table and not in either of the models or controllers.

Any clues?


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1caa52a8-34e2-48d9-86a5-f955a8b63573%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment