Ruby ruby http 的 delete 请求中如何在 path 种传递 2 个参数

shlallen · December 20, 2012 · Last by xylinq replied at December 20, 2012 · 3218 hits

大神,求助啊 有代码的话那就最好不过了

link_to("Destroy", { :controller => "", :action => "", :params1 => "", :params2 => "" }, :method => :delete, :confirm => "Are you sure?")
user_path(id, :role => "admin")
You need to Sign in before reply, if you don't have an account, please Sign up first.