Nested_set in a Select

- - posted in ruby | Comments

1
<%= form.input :categories, :collection => website.categories.all.collect { |c| ["#{'  -- ' * c.depth}#{c.name}", c.id ] }, :as => :check_boxes %>

This produces a select with the entire tree in it.

Comments