search for: template_fields

Displaying 2 results from an estimated 2 matches for "template_fields".

Did you mean: template_field
2006 Apr 11
1
Mixins?
As is often the case when I tackle a new platform/language, I get the big picture very quickly (because frameworks are frameworks are frameworks) but its the nitty-gritty of the language that bogs me down... So I have some similar methods on a few of my model classes that I wanted to push into a helper. Now I reckoned that the Ruby way was to create a module and mix it in with include. However, I
2009 Apr 20
0
User defined model and validations?
...d then x many fields of say "Text max length 20 chars", "Image size 50x50", "Text 10 chars, not required" etc. - After the template is defined, end user would load it and save implementations of that template. The template would be easy to create say template has_many template_fields. But how can I load this template, validate it''s data and save the instances in another table(s)? This would be similar to say allowing the admin to define their own forms/fields/validations in the database, then saving instances of these forms. It seems like this would be a fairly comm...