nested_set in a select
<%= 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.
{People,Soft}ware
<%= 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.