Acts_as_tree example

Does anyone know where to find a good example of acts_as_tree. I’m
specifically using it to create a category and subcategory for
articles… I am mostly having difficulties with creating new categories
and subcategories, as well as using a options_for_select to choose an
article’s category. Just curious if anyone knew of good examples of