Change id in simple form

ぐ巨炮叔叔 提交于 2019-12-01 02:06:25
Michał Czapko

Specify the id within the html option:

= simple_form_for @account, :url => account_url, :wrapper: :inline, html: { method: :put, id: :edit_account } do |f|

The question is ambiguous, so note that if you are trying to change the id of an element in the form rather than the id of the whole form, then you should use input_html: { id: :select_special }.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!