I have just installed rails. Also I have installed spree,spree-multi-
domains gems.
I could run the sample spree app but on the admin of spree could not
find facility to add multi domains, I have googled but could not find
how to create multi domains using rails or spree. If there are any
ruby gems to achieve or any other way please let me know. Below is
what I wanted exactly
You definitely can. Check out section 3.9 of this:
Of course you are up for some work Also, not sure if it would help in
your case, but using the rails mountable engines to modularize might
help,
and that also should work into your routing schema (i.e. see the
Railscast
on mountable engines).
Taken a look,But i did not understand on the following
how to create three domains itself in the first place using RoR, ie
create
parent domain (www.family.com) and subdomains (www.father.family.com, www.son.family.com http://www.father.family.com,%20www.son.family.com/)
on typing the www.family.com in the browser address bar i should go to
admin domain. how to tell this in routes.rb
on typing the subdomain (Ex www.father.family.com) on browsers address
bar
how I should tell routes to go to subdomain’s front page which is
different from the parent domain’s page.
how to define /where in routes define whats the defulat pages for each
domain.
can you suggest me some good documentation or can u share if something
already exists.
Thanks,
NRoR
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.