Giải thích quy trình request/response trong Rails
Giải thích quy trình request/response trong Rails
Luồng một request trong Rails:
ActionDispatch::SSL, Static, Cookies, Session, Flash, Rack::Attack... xử lý lần lượt.config/routes.rb) khớp URL + verb → controller#action.before_action), Strong Parameters, gọi Model (ActiveRecord) để đọc/ ghi DB hoặc service.render json:/ Jbuilder/ serializer).Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.