#85 ✓resolved
Chris Cherry

[PULL] Rails 2.1 uses new method to set relative_url_root

Reported by Chris Cherry | October 17th, 2008 @ 02:46 PM | in 1.1

Please pull from seriph/thin

This patch fixes a warning when using a prefix with Rails 2.1.1 or greater.

DEPRECATION WARNING: ActionController::AbstractRequest.relative_url_root= has been renamed.You can now set it with config.action_controller.relative_url_root=  See http://www.rubyonrails.org/deprecation for details. (called from load_application at /Library/Ruby/Gems/1.8/gems/thin-1.0.0/lib/rack/adapter/rails.rb:34)

Although this warning says it's a "deprecation warning" it appears to break the prefix functionality entirely! This fix also supports the older rails method at the same time.

(If you look on that github commit, the author and commiter are actually both me but I changed my user.email setting so it got confused, sorry about that.)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket


Referenced by