0
Since I have the abstract class User
, and its sub-classes Client Employee
and Admin
, would like to render screens according to the chosen subclass.
So:
users/_form.html.erb
: shall contain a check-box containing the subclasses of Users
, And once selected a subclass I can instantiate it or render your form.
Example: the user select
Colaborador
is rendered Employees/_form.html.erb`.
Se alguém puder também dar uma dica ou exemplo de como implementar.