I am trying the following code in .erb file with sonar 3.0 to show folders in tree structure.
Order: <%= select_tag 'size_metric', options_from_collection_for_select(
Sonar::TreemapBuilder.size_metrics, :key, :short_name, Sonar::TreemapBuilder.default_size_metric.key),
:id => 'select_size_metric', :class => 'small',:onchange => "load_treemap(current_resource_key);" %>
| | Color: <%= select_tag 'color_metric', options_from_collection_for_select(
Sonar::TreemapBuilder.color_metrics, :key, :short_name, Sonar::TreemapBuilder.default_color_metric.key),
:id => 'select_color_metric', :class => 'small', :onchange => "load_treemap(current_resource_key);" %>
|
will result error with message "We're sorry, but something went wrong."
But it works with sonar 2.11 pefectly. I think soanr removed some clases. Thn which are the replacement class.
My target is display directory and folders in tree structure. please help me..