I have one table named User.
In that i have two type of record :
1) Corporation
2) Agency
Field name is is_agency?(Boolean). If is agency then true and if is corporation then false.
I want to display User table to two different table Corporation and Agency in admin side. I used rails_admin gem.
How can i differentiate using "is_agency?" field ?
I check rails_admin gem documentation but i did't find any thing about this.
Please help me to find out this solution, it will save my hours.
Aucun commentaire:
Enregistrer un commentaire