Portal Labs, LLC Logo
Custom Web Design and Application Development

Fixing subdomain_fu With Named Routes (Rails 2.2)

We recently upgraded our project that was using subdomain_fu to rails 2.2 and the previous fix no longer works.

Turns out the solution is even easier in rails 2.2 than 2.1. Open up lib/subdomain_fu/routing_extensions.rb and put this bit of code at the very bottom:


ActionController::UrlRewriter::RESERVED_OPTIONS << :subdomain

Is this the correct way? Doesn’t seem to be since we’re modifying a “constant”, but it seems to work.

Tags: , ,

3 Responses to “Fixing subdomain_fu With Named Routes (Rails 2.2)”

  1. Igor Petrushenko Says:

    Didn’t work for me :(

  2. دردشة Says:

    Thank you and I will try to use this symbol Crown promises that I had some difficulties, thank you

  3. Benny Goodler Says:

    I was wondering about this - do you have any suggestions? I’ve done some research but haven’t been getting very far. Looking for some guidance I guess…

Leave a Reply

Client DropBox   |   Client Login