Re: [Rails] Newbie question - how set up working with a subset of data (e.g. user's data)?

2010-01-15 Thread Steve Klabnik
Let me get this straight. You have users. Users have Stuff. You want a page, say, where a given user can see just their Stuff, and nobody else's? Well, you'd want to make your User have_many :stuffs, and your Stuffs belong_to :user . This'll require a user_id column in your Stuffs table. Then, fi

[Rails] Newbie question - how set up working with a subset of data (e.g. user's data)?

2010-01-14 Thread Souschef
I'm new to rails & am building out an application to learn from. From a conceptual perspective, how would I go about working with a subset of data? For example, say I have an application with basic CRUD operations on "Stuff". I've implemented the restful_authentication plugin and am now struggli