Bah, right after I posted the question, I found the answer in the docs for select, and not in the option_groups_from_collection_for_selectdocs where I looked.
Answer:
<%= f.select :post_type_id, option_groups_from_collection_for_select(@categories, :post_types, :name, :id, :name), :include_blank => "Please select..." %>
Magne source
share