[Ruby on Rails] 1장. 라우팅과 컨트롤러
1. 라우팅 (Routing)라우팅은 URL 요청을 특정 컨트롤러의 액션에 매핑하는 역할로, Rails에서 config/routes.rb 파일에 라우팅을 직접 설정할 수 있습니다. 먼저 기본적인 라우팅 설정은 다음과 같습니다.Rails.application.routes.draw do resources :articles get "articles", to: "articles#index" # 모든 기사 목록 get "articles/new", to: "articles#new" # 새 기사 작성 폼 post "articles", to: "articles#create" # 새 기사 생성 get "articles/:id", to: "articles#show" # 특정 기사 보기 get "articl..