Topic: Fix for Ym4r bug with rails 2.2.2
If you encountered a bug with the ym4r plugin and ruby on rails 2.2.2 here there is a solution.
We have worked for this a while but we've finally solved it.
If you encount this error => undefined method 'relative_url_root' for ActionContoller::AbstractRequest:Class
You have to go to vendor/plugins/ym4r_gm/gm_plugin/map.rb, comment this line ( for me it was 36 )
a << "script src=\"#{ActionController::AbrastractRequest.relative_url_root}/javascript/ym4r-gm.js\" type=\"text/javascript\"> </script>\n" unless option[:without_js]
and substitude the string "#{ActionController::AbstractRequest.relative_url_root}" with "#{ActionController::Base.relative_url_root}" in a new cleared line.
I hope it will be usefull for others.
eTr && sgtbash ( University of Catania, Sicily , Italy )