阅读背景:

如何在rails中添加options_from_collection_for_select的数据属性

来源:互联网 

Consider this as my select tag

将此视为我的选择标记

<%= select_tag "post[brand_slug]", options_from_collection_for_select(@products, 'slug', 'name'), prompt: 'select' %>
<



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: