Using form_for tag with get method

后端 未结 2 2040
长情又很酷
长情又很酷 2021-01-11 13:25

I am trying to Submit a form using get method. Earlier I was trying a similar thing with form_tag and it was working but now when I changed to a form_for tag, this doesn\'t

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-11 13:53

    Did you try

    <%= form_for(@post_filter, :url=> filter_path, :html => {:method => :get}) do |f| %>
    

提交回复
热议问题