更新时间:2022-12-31 15:18:25
它实际上与GET参数相同.为了证明这一点,我有一个搜索表单,该表单将一个参数发布到同一操作:
it's the same actually as GET parameters. To prove that, I have a search form that posts one parameter to the same action :
def invite
if request.post?
search= [params[:search]]
#...
end
end
在视图中-也许您的问题来自此
<% form_tag do %>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Rechercher" %>
<% end %>