CRUD 들어가기 전에 계속 헷갈렸던 new와 create의 차이점을 정리해보자! 다행히 스택 오버 플로우에 누가 똑같은 질문을 올려놨다 ㅋㅋㅋ
Within Rails' implementation of REST new and create are treated differently.
An HTTP GET to /resources/new is intended to render a form suitable for creating a new resource, which it does by calling the new action within the controller, which creates a new unsaved record and renders the form.
An HTTP POST to /resources takes the record created as part of the new action and passes it to the create action within the controller, which then attempts to save it to the database.
레일즈의 RESTful 구현(implementation)에서 new와 create은 서로 다르게 처리됩니다.
HTTP GET 요청인 /resources/new는 새로운 리소스를 생성할 수 있는 폼을 랜더링합니다. 이를 위해 컨트롤러에서 new 액션을 호출하여 새로운 저장되지 않은 레코드를 생성하고 폼을 랜더링합니다.
HTTP POST 요청인 /resources은 new 액션으로 생성된 레코드를 가져와서 컨트롤러의 create 액션에 전달하고, 이후 데이터베이스에 저장을 시도합니다.