var imgSpan = $('#avatar_image'); imgSpan.attr({"src":'<%= @urlfile.to_s << "?" << Time.now.to_s%>'});