johnmcauley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Apr-07 08:32 UTC
Modelling Question - developing meta system
Hey everyone, Just a quick Q. Can anybody point me to some resources regarding a modeling quandary I am in. I have to develop a meta system that allows users to specify their own model variables. For instance, I have a model Team and the users must be able to define, through a simple web interface, variables such as name (specifying the variable as a string), number of players (specifying the variable as a drop down of numbers) and then other users can enter teams into the system. This is similar to content creation kit in drupal but a lot less "DRUPAL" and a lot more rails. I can put this together but think that I will end up with a messy application that will ultimately serve to frustrate. Has anybody come across discussion on this before? Thanks j -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 7, 9:32 am, "johnmcau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <johnmcau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey everyone, > > Just a quick Q. > > Can anybody point me to some resources regarding a modeling quandary I > am in. I have to develop a meta system that allows users to specify > their own model variables. For instance, I have a model Team and the > users must be able to define, through a simple web interface, > variables such as name (specifying the variable as a string), number > of players (specifying the variable as a drop down of numbers) and > then other users can enter teams into the system. This is similar to > content creation kit in drupal but a lot less "DRUPAL" and a lot more > rails. I can put this together but think that I will end up with a > messy application that will ultimately serve to frustrate. Has > anybody come across discussion on this before? >Well you could model this as Team having many attributes and the attributes table stores key value pairs. You could separately store which attributes are permissible for the Team model. You might also find that a document database like couchdb makes this less hassle. Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
johnmcauley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Apr-08 05:10 UTC
Re: Modelling Question - developing meta system
Thanks Fred On Apr 7, 11:02 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 7, 9:32 am, "johnmcau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <johnmcau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > > > Hey everyone, > > > Just a quick Q. > > > Can anybody point me to some resources regarding a modeling quandary I > > am in. I have to develop a meta system that allows users to specify > > their own model variables. For instance, I have a model Team and the > > users must be able to define, through a simple web interface, > > variables such as name (specifying the variable as a string), number > > of players (specifying the variable as a drop down of numbers) and > > then other users can enter teams into the system. This is similar to > > content creation kit in drupal but a lot less "DRUPAL" and a lot more > > rails. I can put this together but think that I will end up with a > > messy application that will ultimately serve to frustrate. Has > > anybody come across discussion on this before? > > Well you could model this as Team having many attributes and the > attributes table stores key value pairs. You could separately store > which attributes are permissible for the Team model. > You might also find that a document database like couchdb makes this > less hassle. > > Fred-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.