常用restful路由
Posted znsongshu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了常用restful路由相关的知识,希望对你有一定的参考价值。
tax_categories GET /tax_categories(.:format) tax_categories#index POST /tax_categories(.:format) tax_categories#create new_tax_category GET /tax_categories/new(.:format) tax_categories#new edit_tax_category GET /tax_categories/:id/edit(.:format) tax_categories#edit tax_category GET /tax_categories/:id(.:format) tax_categories#show PATCH /tax_categories/:id(.:format) tax_categories#update PUT /tax_categories/:id(.:format) tax_categories#update DELETE /tax_categories/:id(.:format) tax_categories#destroy <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <head> <base href="<%=basePath%>">
以上是关于常用restful路由的主要内容,如果未能解决你的问题,请参考以下文章