Ruby on Rails route for wildcard subdomains to a controller/action
问题 I dynamically create URLs of the form username.users.example.com : bob.users.example.com tim.users.example.com scott.users.example.com All of *.users.example.com requests should go to a particular controller/action. How do I specify this in routes.rb ? All other requests to www.example.com go to the normal list of routes in my routes.rb file. UPDATE : I watch the railscast about subdomains and it showed the following bit of code which would seem to be exactly what I need (changed the