Send querystring params as part of form post

前端 未结 4 1246
旧巷少年郎
旧巷少年郎 2021-02-08 17:25

Is there a way to capture the querystring and send that along as part of a form post? I\'m using Rails 2.3.5 and my user is on a page that has multiple querystring parameters. O

4条回答
  •  名媛妹妹
    2021-02-08 17:56

    A friend of mine showed me what I believe is an easier way:

    <% form_tag params.merge(:action=>"someAction") do %>
    

    Merging params into the hash necessary for making the form_tag did the trick perfectly.

提交回复
热议问题