标签: ruby-on-rails
如何写
PUT /users/:action/:id(.:format) {:action=>"update_admin", :controller=>"admin"}
在route.rb?
答案 0 :(得分:1)
阅读http://guides.rubyonrails.org/routing.html
match '/users/:action/:id(.:format)' => 'admin#update_admin', :via => :put