Added check if there are any options to display (e.g. options = null).

This commit is contained in:
Thorsten Eckel 2015-08-04 16:54:17 +02:00
parent 9643e2f214
commit 405589a293

View file

@ -1,3 +1,5 @@
<% if @options: %>
<% for option in @options: %>
<li role="presentation" class="js-option" data-value="<%= option.value %>"><%= option.name %>
<% end %>
<% end %>