Does form_tag work with Simple_form?

后端 未结 4 1327
别那么骄傲
别那么骄傲 2020-12-12 22:11

I have a form that is using form_tag and not sure how to use it with the simple_form gem. This is how my form looks:

<%= form_tag create_mult         


        
4条回答
  •  萌比男神i
    2020-12-12 22:57

    You can avoid use of

    params[:signin][:email]
    

    using

    <%= f.input :email, input_html: { name: "email" } %>
    

    so

    params[:email]
    

提交回复
热议问题