Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
select_tag() ヘルパーを使用して、生成された要素に ID を渡さないようにする方法はありますか?
そうでない場合、ページに同じフォームが複数あり、id を一意に保ちたい場合はどうしますか?
ああ、解決策は次のとおりです。
select_tag($name, $option_tags, array('id'=>'label_picker_for_' . $article_id);