[ rails ] RESTful resources

photos#index

GET /photos

display a list of all photos

 

photos#new

GET /photos/new

return an HTML form for creating a new photo

 

photos#create

POST /photos

create a new photo

 

photos#show

GET /photos/:id

display a specific photo

 

photos#edit

GET /photos/:id/edit

return an HTML form for editing a photo

 

photos#update

PATCH/PUT /photos/:id

update a specific photo

 

photos#destroy

DELETE /photos/:id

delete a specific photo

 

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s