I'm upgrading a rails app 2.1 to 2.3.5.
After upgrading i got the error in the views
undefined method `relative_url_root' for #<ActionController>
any suggestions??
I'm upgrading a rails app 2.1 to 2.3.5.
After upgrading i got the error in the views
undefined method `relative_url_root' for #<ActionController>
any suggestions??
It does for Rails 2.1 and earlier, sort of. Under Rails 2.1 and earlier, you could set the relative_url_root via an HTTP header and Passenger did this (or seemed to). Under Rails 2.2, support for the HTTP header was removed for some reason. ( Rails commit: http://github.com/rails/rails/commit/a87462afcb6c642e59bfcd2e11e3351e... ) There's an open issue for this now:
http://code.google.com/p/phusion-passenger/issues/detail?id=169
Ref:- http://groups.google.com/group/phusion-passenger/browse_thread/thread/3c5cfb107ed29937
These might help:
https://rails.lighthouseapp.com/projects/8994/tickets/2429-problem-with-relative_url_root-rails-222