Could someone describe what this is all about?
It's in the routing file:
match "photo", :constraints => {:subdomain => "admin"}
I can't understand it.
thanks
Could someone describe what this is all about?
It's in the routing file:
match "photo", :constraints => {:subdomain => "admin"}
I can't understand it.
thanks
It's saying that the photo
route will only be recognised and routed to a controller if the request contains the subdomain admin
. For example, the Rails application would respond to a request of http://admin.example.org/photo, but not http://example.org/photo.