If you are creating new budget from a nested scaffold, try with nested_parent_record, it should return the order
El 01-03-2013 19:26, Hernan Astudillo escribió: > having this structure (has-many -> belongs_to) > > order->budget->item->product > > when creating a budget, i add an item, and choose a product. The price depends on a checkbox in Order, but i have no way to access that from the new item (which parent is also new) > > However, the "create new budget" link has an "order_id" param but there is nothing on active_scaffold_storage nor active_scaffold_config to retrieve it. > > Is there a way to access this value, or pass it from form to subform as a hidden value, or url param, using virtual column or whatever other way? > > thanks in advance > > -- > You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/activescaffold?hl=en [1]. > For more options, visit https://groups.google.com/groups/opt_out [2]. Links: ------ [1] http://groups.google.com/group/activescaffold?hl=en [2] https://groups.google.com/groups/opt_out -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/activescaffold?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
