On 1 April 2011 19:43, Mendel G. <lists@ruby-forum.com> wrote:
> My application has the following models:
>
> Form
> Field
> FieldForm
> Value
> Record
>
> (and others that are irrelevant to the question)
>
> In a Form, I have many Fields and for a Field, there are many Forms. The
> idea is to generate a form with customizable Fields. The Field has an
> attribute called "type" that defines what control will be rendered
Don't use 'type' as an attribute, it will cause you grief. Rails will
assume you are using STI and you will get some strange errors.
Colin
--
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@googlegroups.com.
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.
No comments:
Post a Comment