Re: undefined method `relative_url_root''

pharrington
Sun, 03 May 2009 22:00:44 -0000

The source the the error is the ym4rgm plugin:

a << "<script
src=\"#{ActionController::Base.relative_url_root}/
javascripts/ym4r-gm.js\"
type=\"text/javascript\"> \n" unless
options[:without_js]

However, it''s strange that that error is happening, as
ActionController::Base.relative_url_root has been around for awhile.
What version of Rails are you running? You can also try changing that
line in ym4r_gm/lib/gm_plugin/map.rb to something like:

a << javascript_include_tag ''ym4r-gm'' unless
options[:without_js}

To see if that resolves the issue.

On May 3, 11:39 am, Stephen Fagan
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> Sorry, I should have added the trace:
>
> vendor/plugins/ym4r_gm/lib/gm_plugin/map.rb:36:in `header''
> app/views/user_photos/show.rhtml:2:in
> `_run_erb_47app47views47user_photos47show46rhtml''
> app/views/user_photos/show.rhtml:1:in
> `_run_erb_47app47views47user_photos47show46rhtml''
> app/controllers/user_photos_controller.rb:38:in `show''
>
> --
> Posted viahttp://www.ruby-forum.com/.