in a heap and then use that in the user details view.
:zoom => @user.home_zoom
end
if @user.image
- # i'd love to use "url_for_file_column, :absolute=>true", but that doesn't seem
- # to work with the file_column plugin version we're using.
- xml.tag! "img", :href => ("http://" + SERVER_URL + url_for_file_column(@user, "image"))
+ xml.tag! "img", :href => (url_for_file_column(@user, "image", :absolute => true))
end
if @user.languages
xml.tag! "languages" do
return nil unless relative_path
url = ""
- url << request.relative_url_root.to_s if absolute
+ url << request.protocol << request.host_with_port if absolute
url << "/"
url << object.send("#{method}_options")[:base_url] << "/"
url << relative_path