views:

273

answers:

3

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??

A: 

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

Salil