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: , ,

5 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…

  4. einladungskarten Says:

    What i do not understood is in truth how you’re now not really a lot more well-appreciated than you might be right now. You’re very intelligent. You know thus considerably when it comes to this matter, produced me in my opinion imagine it from so many various angles. Its like men and women aren’t fascinated until it is one thing to accomplish with Lady gaga! Your personal stuffs excellent. All the time take care of it up!king regards Herbert

  5. $ Says:

    It was in the range of end of December 2009 and early of January 2010. As far as we know, Google will update PR occasionally for every 3 months. So will be expecting new updates on March – April 2010.

Leave a Reply

Client DropBox   |   Client Login