Idea in development - Dynamic Records

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

This looks great. A more in depth example of useage might be nice.

Stephen B. 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

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.

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!

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 :slight_smile:

Regards,
-carl

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs