I have a single database which contains a single table. The general
public will not have access to the table at all. I have 2 classes of
users that will have access to the table. The ‘members’ class is to
have read-only access. The ‘admins’ class is to have read and edit
My initial thought was that the way to handle this was to setup 2
controllers (and 2 models) because it would be easier to control the
access if each class having access to the table had their own separate
controller. I’m having trouble with that approach getting
ActiveRecord::StatementInvalid errors. I think I am beginning to see
My question is: When one has only one table and wants to provide 2
different levels of access to it, what is the best strategy to employ?
Thanks for any input.