Tabulka 47.6. RESTfull Named Routes in Interaction with HTTP Request Methods
GET | POST | PUT | DELETE | |
---|---|---|---|---|
note_url(@note) | /notes/1 show | /notes/1 update | /notes/1 destroy | |
notes_url | /notes index | /notes create | ||
edit_note_url(@note) | /notes/1;edit edit | |||
new_note_url | /notes/new new |