Routing subdomain request

Give how to do this trick:

  1. Users were tables with one of the fields and table subdomain
    Blogs class Blog <ActiveRecord:: Base
    has_many: comments
    belongs_to: user
    class User <ActiveRecord:: Base
    has_many: blogs
  2. There is a module which writes in account_subdomain subdomain
    address from the browser
  3. The objective to have at / blogs drawing record all
    users, and write only user’s subdomain which
    “sub” How? Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs