<% if @r_tag.eql?('sub_menu') %> // $('#name_list select').html("<%= j options_for_select(t(:horizontal) => :horizontal, t(:vertical) => :vertical) %>") <% else %> $('#name_list select').html("<%= j options_from_collection_for_select(@tag_objects, :id, :title) %>") <% end %>