Rails get header response for a remote image -


i load in app facebook image of users (and performance load url of picture on db). when user change profile pic url must changed too.

how can detect response of external server (e.g. when 404) know must refresh url pictures of user?

you use rest-client, execute head request url , check response status.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -