Skip to content

Instantly share code, notes, and snippets.

@rgo
Created May 17, 2009 18:39
Show Gist options
  • Save rgo/113090 to your computer and use it in GitHub Desktop.
Save rgo/113090 to your computer and use it in GitHub Desktop.
relative_url_root gotcha rails 2.3.x passenger
Problem: `load_missing_constant’: uninitialized constant ActionController::AbstractRequest (NameError)
Solution:
-ActionController::AbstractRequest.relative_url_root = "your_root"
+config.action_controller.relative_url_root = "your_root"
# More gotchas: http://giantrobots.thoughtbot.com/2009/4/15/rails-2-3-2-upgrade-gotchas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment