Could you help me to solve this ?
I'm creating a management application with to different users :
"User" they are definided in app, that's management person, won't change, and "Student" they are definided in a table that would growing for the next 6 month (now I have maybe 10 students in this table, next month maybe 100) Attribut between users and students are different
I should create an application with backend and frontend
Frontend could be used by user and student Backend could be used only by user if they have "admin" flag
I would use ActiveAdmin for backend But for Frontend i'm lost...
It seems that cancan and devise could solve this, but :
- Should I create a User model and a Student model, or is there a better way ?
- Howto manage the connection on the same frontend views(maybe should i create two different views) from two differents tables (users and students) ?
- Student should receive a "student_role" automatically, howto do this ?
All idea would be greatly appreciated, many thanks to read me !
Nicolas