Custom HTML attribute requires a custom helper?

前端 未结 2 831
别跟我提以往
别跟我提以往 2021-02-18 23:48

I\'m trying to create a form with some custom data attributes on the inputs:


This seemed

2条回答
  •  孤城傲影
    2021-02-18 23:53

    Oops. It's just

    <%= f.text_field :question, :id=>"poll_question", :class=>"BigInput", :style=>"width:98%;", 'data-submit_clear'=>'1' %>
    

提交回复
热议问题