As ActionController::Base#default_url_options is deprecated, I wonder how to set default url options in rails3. The default url options are not static but dependent of the c
I believe the preferred method is to now tell the router to handle this:
Rails.application.routes.default_url_options[:foo]= 'bar'
You can put this line in either routes.rb or an initializer. Whichever you would prefer. You could even put it in your environment configs if the values change based on your environment.