Tag: hide

如何隐藏我传输给方法的params(比如form_for似乎这样做)?

我一直在寻找几个小时,但没有发现任何有用的东西。 我想做的事: 我需要调用check_login -Method(如下所示),它需要参数。 redirect_to check_login_users_url( :user => {:name => input[1], :password => input [2] }, :stylesheet => ‘scaffold’, :method => :get) 关键是这些参数在方法调用中发送,如下面的“重定向到” – 线。 Processing ApplicationController#execute(for 127.0.0.1 at 2009-12-19 00:28:40) [POST] Parameters: {“command”=>{“line”=>”log dodo wg”}, “authenticity_token”=> } Redirected to http://localhost:3000/benutzer/check_login?method=get&stylesheet=scaffold&user%5Bname%5D=dodo&user%5Bpassword%5D=wg Completed in 9ms (DB: 0) | 302 Found [http://localhost/execute] 我想阻止rails将params放入url并将其隐藏。 当我发送一个用form_for创建的表单时,url中没有任何内容,所以我认为它必须是可能的。 请告诉我该怎么做。 试过的步骤 我尝试过不同的“html-verbs”:get,put,post […]