# Rails3 -- Replacement for ActionController::Base.relative\_url\_root?

**URL:** <https://www.ruby-forum.com/t/rails3-replacement-for-actioncontroller-base-relative-url-root/191290>\
**Category:** Rails\
**Created:** [July 8, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/rails3-replacement-for-actioncontroller-base-relative-url-root/191290 "2010-07-08T23:41:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![donktwo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9fc348/32.png) [@donktwo](https://www.ruby-forum.com/u/donktwo)\
**Post date:** [July 8, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/rails3-replacement-for-actioncontroller-base-relative-url-root/191290/1 "2010-07-08T23:41:05Z")

</div>

I have a post on stackoverflow which outlines the problem I am having:  
[ruby on rails - What is the replacement for ActionController::Base.relative\_url\_root? - Stack Overflow](http://stackoverflow.com/questions/3181746/what-is-the-replacement-for-actioncontrollerbase-relative-url-root)

In short, I ported a rails 2.x to rails3 and started getting a  
deprecation warning for using  
ActionController::Base.relative\_url\_root. I switched to using  
config.action\_controller.relative\_url\_root and while any calls to  
external resources (like css/jss/images) does have the url root  
appended, none of my routes do.

Is config.action\_controller.relative\_url\_root the right replacements  
for ActionController::Base.relative\_url\_root?
