What is an ActionDispatch?

I have a pretty decent understanding of basic Rails concepts such as ActiveRecord, routing, migration, etc. One thing I'm hard to understand with is ActionDispatch. I can not find a simple English description (or really any description) of what it is. So what is it?

+6
source share
2 answers

The Dispatch action is really a bunch of code that does the following: It analyzes web request information, processes routing as defined by the user, and performs advanced HTTP-related processing, such as MIME type negotiation, decoding parameters in POST, PATCH, or PUT bodies, processing HTTP caching logic, cookies, and sessions.

+7
source

In one short sentence: The Send Routes action requests the controllers. . For a more detailed explanation, I would recommend reading " Action Dispatcher and Action Controller in Rails 4 ".


Action Dispatch and Action Controller

+5
source

Source: https://habr.com/ru/post/946116/


All Articles