If the pages do not differ much (i.e. they show the same data, possibly more for admins), then I would say that all the codes are in one file. If possible, use a role-based ability management system so you can ask questions such as:
if can? :create, Users do ... else ... end
Then you configure your abilities so that administrators and managers can create users. Thus, you do not need to worry about who the user is, only what the user is allowed to do.
Topher fangio
source share