2010-07-19 11:51:04 +00:00
|
|
|
= Action Pack -- From request to response
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2010-08-03 19:12:16 +00:00
|
|
|
Action Pack is a framework for handling and responding to web requests. It
|
2010-07-19 11:51:04 +00:00
|
|
|
provides mechanisms for *routing* (mapping request URLs to actions), defining
|
|
|
|
*controllers* that implement actions, and generating responses by rendering
|
|
|
|
*views*, which are templates of various formats. In short, Action Pack
|
|
|
|
provides the view and controller layers in the MVC paradigm.
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2010-07-19 11:51:04 +00:00
|
|
|
It consists of several modules:
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2010-07-19 11:51:04 +00:00
|
|
|
* Action Dispatch, which parses information about the web request, handles
|
|
|
|
routing as defined by the user, and does advanced processing related to HTTP
|
2013-01-01 21:41:51 +00:00
|
|
|
such as MIME-type negotiation, decoding parameters in POST, PATCH, or PUT bodies,
|
2010-07-19 11:51:04 +00:00
|
|
|
handling HTTP caching logic, cookies and sessions.
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2010-07-19 11:51:04 +00:00
|
|
|
* 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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2010-07-18 12:58:40 +00:00
|
|
|
== Download and installation
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2011-08-05 08:34:43 +00:00
|
|
|
The latest version of Action Pack can be installed with RubyGems:
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2015-12-06 18:16:26 +00:00
|
|
|
$ gem install actionpack
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2010-07-18 12:58:40 +00:00
|
|
|
Source code can be downloaded as part of the Rails project on GitHub
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2011-08-04 07:03:56 +00:00
|
|
|
* https://github.com/rails/rails/tree/master/actionpack
|
2004-11-24 01:04:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
== License
|
|
|
|
|
2011-12-23 21:03:21 +00:00
|
|
|
Action Pack is released under the MIT license:
|
|
|
|
|
|
|
|
* http://www.opensource.org/licenses/MIT
|
2004-11-24 01:04:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
== Support
|
|
|
|
|
2010-07-18 12:58:40 +00:00
|
|
|
API documentation is at
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2011-05-24 15:42:01 +00:00
|
|
|
* http://api.rubyonrails.org
|
2010-07-18 12:58:40 +00:00
|
|
|
|
2014-06-02 02:11:39 +00:00
|
|
|
Bug reports can be filed for the Ruby on Rails project here:
|
2010-07-18 12:58:40 +00:00
|
|
|
|
2011-05-10 16:30:06 +00:00
|
|
|
* https://github.com/rails/rails/issues
|
2014-06-02 02:11:39 +00:00
|
|
|
|
|
|
|
Feature requests should be discussed on the rails-core mailing list here:
|
|
|
|
|
|
|
|
* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core
|