It sounds like what you''re actually after in your application is
what''s called multi-tenancy. Try researching a bit on that topic and
you may find what you need.
Here are a few links to get you started:
http://en.wikipedia.org/wiki/Multitenancy
https://github.com/wireframe/multitenant
http://www.slideshare.net/tardate/multitenancy-with-rails
On Oct 27, 1:51 am, newrails user
<newror.u...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> HI All,
>
> I surfed a lot , googled a lot , read/watched railscasts but could not get
> the solution.
>
> Below is my problem.
>
> 1) I wanted a parent domainwww.xyz.com. This parent domain will have two
> subdomains abc.xyz.com and def.xyz.com.
>
> The parent domain will have a admin user who has capability to
create/manage
> subdomains.
> The subdomains should an a siteadmin user who can edit the site
information.
> Each subdomain will have its own home page.
>
> So If i givehttp://www.xyz.comin browser address bar it should go to a
> home page say parent.
> If I givehttp://abc.xyz.com it should go to different page.
>
> The site admin of one subdomain should not be able to edit the other
> subdomain.
>
> They need to share the same database.
>
> I checked a lot, But could not get the answer.
>
> Please help me to progess i am stuck.
>
> thanks,
> S
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.