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: programming, ruby, rubyonrails

December 29th, 2008 at 7:25 am
Didn’t work for me :(
May 17th, 2009 at 9:13 am
Thank you and I will try to use this symbol Crown promises that I had some difficulties, thank you
June 4th, 2009 at 9:34 pm
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…
October 6th, 2011 at 2:48 pm
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
November 26th, 2011 at 12:40 am
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.