首页 > 其他 > 详细

route_path

时间:2014-06-22 23:32:35      阅读:480      评论:0      收藏:0      [点我收藏+]

 

 

 

http://guides.rubyonrails.org/routing.html#crud-verbs-and-actions

creates seven different routes in your application, all mapping to the Photos controller:

HTTP VerbPathController#ActionUsed for
GET /photos photos#index display a list of all photos
GET /photos/new photos#new return an HTML form for creating a new photo
POST /photos photos#create create a new photo
GET /photos/:id photos#show display a specific photo
GET /photos/:id/edit photos#edit return an HTML form for editing a photo
PATCH/PUT /photos/:id photos#update update a specific photo
DELETE /photos/:id photos#destroy delete a specific photo

route_path,布布扣,bubuko.com

route_path

原文:http://www.cnblogs.com/iwangzheng/p/3800094.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!