Topic: HOW TO - Restrict Access to tables....
Here is a question that has still been left unresolved for me..
I am trying to build an online diary for students to enter their information for grade tracking and calculation. This is my second RoR app, but only the first for user login systems and an attempt at restricting access.
Put simply, I am trying to create a table for a user login system, stored in a table called 'users'.
Then I want another table for the student (once logged in) to add diary entries and after data has been gathered, he can research his grades from this diary.
My question is this -
Can you restrict access to users so that they can ONLY view their specific diary entries in the main database, or do I have to create a new table for every student? If so, how would I do that??? Keep in mind this could span a few hundred students or more.
Any insight to this topic would be great, as I am struggling with this and can't seem to find the answers in any material I have seen so far.