There is the following code:
= grouped_collection_select :filter, :service_id, @categories, :enabled_beauty_salon_services, :name, :id, :name, include_blank: 'Choose a service'
But now I need to add some custom attributes like 'data-duration' to items in grouped_collection_select (not to groups - only to items!). How can I do it? Rails 4