I don't get the point how can I do that code with an select helper?
<% @cube_names.each do |cube| %> " <% if @cube_name == cube %> selected="selected"<% end %>><%= cube %> <% end %>
I have a list (@cube_names) and want a HTML select box width all values of the list and the default value (param @cube_name) should be selected.
thanks.