How to do optgroups?

http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000405

The API docs are very unclear, with very little information. I think the original poster would like a real example on how to use it.

Best regards

Peter De Berdt