라우트에 Update 액션 추가
/posts/:id를 통해 POST 또는 PUT 방식으로 폼을 전송했을 때 포스트 컨트롤러의 Update 액션으로 전달되게 라우트 정보를 수정해 보자.
▼ conf/routes
PUT /posts/:id Post.Update
POST /posts/:id Post.Update
라우트에 Update 액션 추가
/posts/:id를 통해 POST 또는 PUT 방식으로 폼을 전송했을 때 포스트 컨트롤러의 Update 액션으로 전달되게 라우트 정보를 수정해 보자.
▼ conf/routes
PUT /posts/:id Post.Update
POST /posts/:id Post.Update