-1
I am working on an application that has two different types of profiles and I want to find the best way to structure my application being that:
All Urls in my app will start with one of the two profiles. Eg: (root/person_physical, root/person_legal);
Many actions/screens will be shared by the two profiles, and some of these screens will have different behaviors for each profile, but others will not have differences. (Ex.: root/profile/about, root/profile/contact_form);
I will have files that will be rendered on all screens of one profile, and other files in the other profile. (Ex.: personal header_physical, personal header_legal);
Does anyone have any tips to indicate?
Let me get this straight: A system user can be registered as PF or PJ, and will use different routes according to the type of person. Is that it? Or all users will have access to all routes?
– user7261
For some static pages, all users have access to both routes, even when they are not registered. But some pages are only for logged in and certain profile users.
– Ruby Dev Junior