title: rails 3 - one app, multiple domains, how implement a different 'root' route for one of the domains?
body: <p>Several different domains names point to my app on heroku, for example foo.com and bar.com both point to the app. (We host specialized blog pages, and foo.com is the domain used by our Users who are creating web pages, and bar.com is the 'public facing' domain where the blog pages are.)</p>
  
  <p>All the user-editing pages have Devise authentication, and the "root" on foo.com is the User's dashboard page. And a logged-in user can preview their blog page at foo.com/reviewpage/USERID</p>
  
  <p>each User acount also has a unique "friendly url name" such as "acme-inc-dallas-tx"</p>
  
  <p>On the public-facing web page bar.com (but ONLY this one domain), I need to somehow map </p>
  
  <p><a href="http://bar.com/friendly-url-name" rel="noreferrer">http://bar.com/friendly-url-name</a> to :controller => mycontroller, :action => myaction</p>
  
  <p>I <em>assume</em> that means I need to re-map 'root' on bar.com (but ONLY bar.com) to a method "find_friendly_url" that looks up the appropriate page and displays it.</p>
  
  <p>If that is the right way to proceed... how would I remap 'root' for one and only one domain that points to my app?</p>