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
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
2 matches
Mail list logo