donktwo
2010-Jul-08 18:04 UTC
Rails3 -- Replacement for ActionController::Base.relative_url_root?
I have a post on stackoverflow which outlines the problem I am having: 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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Possibly Parallel Threads
- Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
- relative_url_root and javascript_include_tag
- Setting config.action_controller.relative_url_root isn't working
- Error On relative_url_root
- setting relative_url_root for static files in webrick