将html select转换为select_tag

时间:2017-02-14 11:16:51

标签: ruby-on-rails-5

我有困难的HTML选择。我如何将这个html select转换为select_tag?

 <a class="btn btn-default btn-select">
                <input type="hidden" class="btn-select-input" id="" name="" value="" />
                <span class="btn-select-value">Select an Item</span>
                <span class='btn-select-arrow fa fa-chevron-down'></span>
                <ul>
                    <li>Option 1</li>
                    <li>Option 2</li>
                    <li>Option 3</li>
                    <li>Option 4</li>
                </ul>
            </a>

0 个答案:

没有答案