Send querystring params as part of form post

前端 未结 4 1767
青春惊慌失措
青春惊慌失措 2021-02-08 17:40

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条回答
  •  梦毁少年i
    2021-02-08 18:01

    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.

提交回复
热议问题