Hi, looking to see if there are some ideas on how I should introduce the idea of a logged-in "user" that effectively 'federates' the data....let me explain.
I have been building my app so far as if there is only one user. Me. All the data and reports are specific to me. I just added authlogic.
I now want to be able to introduce a way for a new user to log in, not see any of my data, and use the application. And eventually to pay to use the system.
So far, my assumption is I'd have to go into the models and add a user_id to pretty much each of them, and then go to all controllers and have them search by user.
But I am wondering if there are gems, suggestions, ideas of a better way to federate the data for each user.
Oh...I may want to enable more than one user to have access to some or all of the data belonging to another user. This is for small teams of sales people that may want to share.
So...ideas before I try fumbling around myself...thank you :)