nested_set in Formtastic
21/06/2011
<%= 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.
21/06/2011
<%= 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.