I've created a very simple app that uses subdomains as account keys. I
followed the instructions at:
My question is how should I best structure the ap?. Specifically, I
have a public-facing website that explains that app and lets people
sign up (www.myapp.com) and then the private part of the app
(account_subdomain.myapp.com). Does it make sense to have these be two
separate apps or a single app? I like the idea of a single app because
it makes it easy to share models (my account model, specifically).
However, the two apps do differ somewhat. For instance, going to the
root page of each app should render a very different page. I can
handle that with some conditional logic, if need be. Also, there are
things that make sense for one app, but not the other. For instance, I
have an Account resource. Actions like new only make sense on the
public website, while actions like edit and delete only make sense on
the private app.
What would the group recommend for structuring this app? Two apps or
one app with some conditional logic in it?
Thanks in advance.