Displaying 1 result from an estimated 1 matches for "a_unit".
Did you mean:
a_init
2006 Mar 09
1
[TIP] Making an intelligent form fields
...ot;+3 days" and so on.
The mechanizm for "i_attributes" can be enhanced similiary as Date is
expanded into form fields. So for example we can have aggregation
composed_of :i_amount, :class_name => ''Amount'',
:map => [%w(a_count count), %w(a_units units)]
And then helper used like
amount_field ''order_item'', ''i_amount''
which renders to one text field and one select box such as:
<input type="text" name="order_item[i_amount(count)]"/>
<select name="order_item...