Hi All, I''ve been working on a client project where by the client can manage the some fields/values available in a model. Here''s a quick writeup: http://stephenbartholomew.wordpress.com/2006/06/28/dynamic-records/ The idea is very much in development, but i thought i''d like to put it out for feedback. The writeup is also pretty rushed so please excuse :0) Cheers! Stephen -- Posted via http://www.ruby-forum.com/.
This looks great. A more in depth example of useage might be nice. Stephen Bartholomew wrote:> Hi All, > > I''ve been working on a client project where by the client can manage the > some fields/values available in a model. > > Here''s a quick writeup: > http://stephenbartholomew.wordpress.com/2006/06/28/dynamic-records/ > > The idea is very much in development, but i thought i''d like to put it > out for feedback. The writeup is also pretty rushed so please excuse :0) > > Cheers! > > Stephen-- Posted via http://www.ruby-forum.com/.
Jonathan del Strother
2006-Jun-30 15:59 UTC
[Rails] Re: Idea in development - Dynamic Records
Funnily enough, I''ve been working on something very similar in the past week. It''s a bit of a hack - it allows admins to type in a hash as a string, which is eval''d and stored as a serialized hash. Forms are dynamically generated from the hash and the users can play with the values there. Would be interested in seeing what solution you came up with. On 30 Jun 2006, at 16:48, AFM wrote:> This looks great. A more in depth example of useage might be nice. > > Stephen Bartholomew wrote: >> Hi All, >> >> I''ve been working on a client project where by the client can >> manage the >> some fields/values available in a model. >> >> Here''s a quick writeup: >> http://stephenbartholomew.wordpress.com/2006/06/28/dynamic-records/ >> >> The idea is very much in development, but i thought i''d like to >> put it >> out for feedback. The writeup is also pretty rushed so please >> excuse :0) >> >> Cheers! >> >> Stephen > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Hi, That sounds really cool. I am very new to rails (and ruby), but was thinking it could be cool to allow endusers to generate migrations dynamically and then run them. So they add fields (x y z) translates to migration to add fields x y z. Your form template would automagically loop scaffold style through fields in a table and make the elements in the form. The problem I see with migrations is that self.down limits you to removing added fields in the order they were added, which is very limiting. Anyway, keep us posted! -- Posted via http://www.ruby-forum.com/.
Wow, this looks very interesting. I''ve been thinking about something like this as I for see needing it for a project coming up for me. Keep us up to date :) Regards, -carl On Jun 28, 2006, at 9:17 AM, Stephen Bartholomew wrote:> Hi All, > > I''ve been working on a client project where by the client can > manage the > some fields/values available in a model. > > Here''s a quick writeup: > http://stephenbartholomew.wordpress.com/2006/06/28/dynamic-records/ > > The idea is very much in development, but i thought i''d like to put it > out for feedback. The writeup is also pretty rushed so please > excuse :0) > > Cheers! > > Stephen > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Stephen Bartholomew
2006-Jun-30 19:36 UTC
[Rails] Re: Idea in development - Dynamic Records
> This looks great. A more in depth example of useage might be nice.Thanks :0) I''m planning a more in depth description of it v.soon. Just setting up a new blog at the moment so it''ll have a more permenant home. Just wanted to see if it''s something others are interested in - looks like it is so i''ll keep working on it and keep you posted! Cheers, Steve -- Posted via http://www.ruby-forum.com/.