I have an article model and an category model. Category act as tree.
What is the best approch to build a select list to allow the administrator to select an category from a select list to associate it later with an article ?
semantic_form_for(@article) do |f|
f.input :title, :as => :string
f.input :content, :as => :text
f.input :category, :collection => #what should go here ?
end