레일즈 표준 컨트롤러 액션

1 개요[ | ]

seven standard Rails actions
레일즈 Standard Controller Actions
레일즈 표준 컨트롤러 액션
  • REST API와는 조금 다름
API 방식이 아니라 화면을 직접 제공하는 경우임
특히 API라면 뷰요소에 해당되는 새 글 등록화면, 글 편집화면은 제공하지 않음

2 목록[ | ]

# 액션 HTTP 메소드 경로예시 컨트롤러#액션 비고
1 index GET /articles articles#index 글목록 출력
2 new GET /articles/new articles#new 새 글 등록화면으로 (NOT Restful)
3 create POST /articles/new articles#create 새 글 등록
4 show GET /articles/:id articles#show 글 보기
5 edit GET /articles/:id/edit articles#edit 글 편집화면으로 (NOT Restful)
6 update PATCH/PUT /articles/:id articles#update 글 업데이트
7 delete DELETE /articles/:id articles#delete[1] 글 삭제

3 같이 보기[ | ]

4 참고[ | ]

  1. 또는 articles#destroy
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}