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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -