CINXE.COM
README.rdoc
<!DOCTYPE html> <html lang="en"> <head> <title>README.rdoc</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../../css/panel.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../../css/github.css" type="text/css" media="screen" /> <script src="../../js/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/turbolinks.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/search_index.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/searcher.js" type="text/javascript" charset="utf-8"></script> <script src="../../panel/tree.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/searchdoc.js" type="text/javascript" charset="utf-8"></script> <meta name="data-rel-prefix" content="../../"> <meta name="data-tree-keys" content='[]'> </head> <body> <a class="sr-only sr-only-focusable" href="#content" data-turbolinks="false">Skip to Content</a> <a class="sr-only sr-only-focusable" href="#search" data-turbolinks="false">Skip to Search</a> <input type="checkbox" id="hamburger" class="panel_checkbox"> <label class="panel_mobile_button" for="hamburger"><span></span> Menu</label> <nav class="panel panel_tree" id="panel" data-turbolinks-permanent> <div class="header"> <input type="text" placeholder="Search (/) for a class, method, ..." autosave="searchdoc" results="10" id="search" autocomplete="off" tabindex="-1" /> <label class="panel_mobile_button_close" for="hamburger"><span></span> Close</label> </div> <div class="tree"> <ul> </ul> </div> <div class="result"> <ul> </ul> </div> <a href="links.html" id="links">index</a> </nav> <div class="banner"> <span>Ruby on Rails 8.0.0</span><br /> <h2> README.rdoc </h2> <ul class="files"> <li> actionpack/README.rdoc <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/actionpack/README.rdoc" target="_blank" class="github_url">on GitHub</a> </li> <li>Last modified: 2024-11-07 23:00:47 +0000</li> </ul> <div id="version-badge">v8.0.0</div> </div> <main id="bodyContent"> <div id="content"> <div class="description"> <h1 id="label-Action+Pack+--+From+request+to+response">Action Pack – From request to response</h1> <p>Action Pack is a framework for handling and responding to web requests. It provides mechanisms for <strong>routing</strong> (mapping request URLs to actions), defining <strong>controllers</strong> that implement actions, and generating responses. In short, Action Pack provides the controller layer in the MVC paradigm.</p> <p>It consists of several modules:</p> <ul><li> <p>Action Dispatch, which parses information about the web request, handles routing as defined by the user, and does advanced processing related to HTTP such as MIME-type negotiation, decoding parameters in POST, PATCH, or PUT bodies, handling HTTP caching logic, cookies and sessions.</p> </li><li> <p>Action Controller, which provides a base controller class that can be subclassed to implement filters and actions to handle requests. The result of an action is typically content generated from views.</p> </li></ul> <p>With the Ruby on Rails framework, users only directly interface with the Action Controller module. Necessary Action Dispatch functionality is activated by default and Action View rendering is implicitly triggered by Action Controller. However, these modules are designed to function on their own and can be used outside of Rails.</p> <p>You can read more about Action Pack in the <a href="https://guides.rubyonrails.org/action_controller_overview.html">Action Controller Overview</a> guide.</p> <h2 id="label-Download+and+installation">Download and installation</h2> <p>The latest version of Action Pack can be installed with RubyGems:</p> <pre><code>$ gem install actionpack </code></pre> <p>Source code can be downloaded as part of the Rails project on GitHub:</p> <ul><li> <p><a href="https://github.com/rails/rails/tree/main/actionpack">github.com/rails/rails/tree/main/actionpack</a></p> </li></ul> <h2 id="label-License">License</h2> <p>Action Pack is released under the MIT license:</p> <ul><li> <p><a href="https://opensource.org/licenses/MIT">opensource.org/licenses/MIT</a></p> </li></ul> <h2 id="label-Support">Support</h2> <p>API documentation is at:</p> <ul><li> <p><a href="https://api.rubyonrails.org">api.rubyonrails.org</a></p> </li></ul> <p>Bug reports for the Ruby on Rails project can be filed here:</p> <ul><li> <p><a href="https://github.com/rails/rails/issues">github.com/rails/rails/issues</a></p> </li></ul> <p>Feature requests should be discussed on the rails-core mailing list here:</p> <ul><li> <p><a href="https://discuss.rubyonrails.org/c/rubyonrails-core">discuss.rubyonrails.org/c/rubyonrails-core</a></p> </li></ul> </div> <!-- Methods --> </div> </main> </body> </html>