>From the documentation on the column API when using form_ui = :select

        • For plural associations:
                • :draggable_lists to show two lists, one with available 
options and the other with selected options; users select them with drag and 
drop instead of checkboxes.
config.columns[:name].options = {:draggable_lists => true}

Michael


On Apr 18, 2011, at 10:03 AM, Liehann wrote:

> Hi,
> 
> I'd like to customize an association, but on the has_many side.
> 
> For example we have orders and items. An order has many items, an item
> may belong to an order.
> 
> class Order
>  has_many :items
> end
> 
> class Item
>  belongs_to :order
> end
> 
> When adding / editing an order I'd like to display two lists - the
> left one shows the items associated with the order, the right the
> items not associated with any order.
> 
> if I do "config.columns[:items].form_ui = :select" I get a check box
> for each item - not quite what I want. Any suggestions on how to
> customize the behavior?
> 
> - Liehann
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/activescaffold?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to