ruby - Ember.js, Rails and Wildcard Subdomains -


how can use ember.js routing rails wildcard subdomains?

say, user signs on site, subdomain. joe , josh both sign up, each subdomain.

joe.mysite.com josh.mysite.com

rails routes api calls (routes.rb) while ember routes else. best way of doing this? using rails or ember route it? possible use ember route subdomains?

the best way programmatically checking location.host or location.hostname.

but ember works it's magic faking urls , not reloading page... don't know of way switch subdomains without reloading page.

i'd redirect subdomain url in main app , let ember handle routing there.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -