ルーティングガイドには、「アプリケーションに7つの8つの異なるルートを作成するなど、ルーティングファイルの1つのエントリで、すべてフォトコントローラにマッピングするresources :photos
」と記載されています。
photos GET /photos(.:format) photos#index
POST /photos(.:format) photos#create
new_photo GET /photos/new(.:format) photos#new
edit_photo GET /photos/:id/edit(.:format) photos#edit
photo GET /photos/:id(.:format) photos#show
PATCH /photos/:id(.:format) photos#update
PUT /photos/:id(.:format) photos#update
DELETE /photos/:id(.:format) photos#destroy
とmatch
動詞メソッド(、、、、、 )get
を使用して同等のルートを作成するにはどうすればよいですか?post
patch
put
delete