Just my two cents, ok? What you need is two models. Collection and Item.
Basically, a class Collection < ActiveRecord::Base has_many :items belongs_to :user end class Item < ActiveRecord::Base belongs_to :collection end The tricky part is the attributes for each model. For the collection model, some of the things you need/want answered are: - attribute name for the collection name (most probably :name) - user_id - status (private, visible to friends, etc.) For the item model, this should be very flexible since you don't know what collection your users would add (or do you?) - collection_id - name of the item - description of the item - anything specific you want to add Good Luck! On Sun, Aug 29, 2010 at 5:00 AM, RolfeDH <[email protected]> wrote: > Could you provide an overview of how to extend CE so that registered > users can create collections of items. For example, a rock > collection. > > They could: > - Add or remove items from the collection. > - Make the collection private, visible to friends, or visible to any > registered user. > - Maybe create multiple collections. > > I'm a Rails newcomer and am using Agile Web Development with Rails, > Third Edition, by Sam Ruby et Al. as my learning and reference guide. > I'll research any high-level information you provide here. > > -- > You received this message because you are subscribed to the Google Groups > "CommunityEngine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<communityengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/communityengine?hl=en. > > -- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
