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…