Hi all,
I am bit stuck with subdomain_fu plugin. I want to create a new
subdomain for newcomers. e.g. newband.mysite.net
I set the tld_sizes:
SubdomainFu.tld_sizes = {:development => 0,
:test => 0,
:production => 2}
my routes.rb:
map.resources :bands
map.band_root '', :controller => 'bands',
:action => 'show',
:conditions => { :subdomain => /.+/ }
bands controller:
def show
@current_band = Band.find_by_subdomain(current_subdomain)
end
I always end up with "CANT FIND THE PAGE" error.
ANy help would be most welcome.
P.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---