码迷,mamicode.com
首页 > 其他好文 > 详细

route_path

时间:2014-06-22 23:33:47      阅读:330      评论:0      收藏:0      [点我收藏+]

标签:des   code   http   get   os   html   

 

 

 

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

标签:des   code   http   get   os   html   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!