Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (36 sloc) 2.125 kb
a1023b0 @mislav improve Action Pack README
mislav authored
1 = Action Pack -- From request to response
db045db @dhh Initial
dhh authored
2
b3bb684 @mhayes removed duplicate word
mhayes authored
3 Action Pack is a framework for handling and responding to web requests. It
a1023b0 @mislav improve Action Pack README
mislav authored
4 provides mechanisms for *routing* (mapping request URLs to actions), defining
5 *controllers* that implement actions, and generating responses by rendering
6 *views*, which are templates of various formats. In short, Action Pack
7 provides the view and controller layers in the MVC paradigm.
db045db @dhh Initial
dhh authored
8
a1023b0 @mislav improve Action Pack README
mislav authored
9 It consists of several modules:
db045db @dhh Initial
dhh authored
10
a1023b0 @mislav improve Action Pack README
mislav authored
11 * Action Dispatch, which parses information about the web request, handles
12 routing as defined by the user, and does advanced processing related to HTTP
13 such as MIME-type negotiation, decoding parameters in POST/PUT bodies,
14 handling HTTP caching logic, cookies and sessions.
db045db @dhh Initial
dhh authored
15
a1023b0 @mislav improve Action Pack README
mislav authored
16 * Action Controller, which provides a base controller class that can be
17 subclassed to implement filters and actions to handle requests. The result
18 of an action is typically content generated from views.
19
20 * Action View, which handles view template lookup and rendering, and provides
21 view helpers that assist when building HTML forms, Atom feeds and more.
9bf5cdd @amatsuda s/ERb/ERB/g (part II)
amatsuda authored
22 Template formats that Action View handles are ERB (embedded Ruby, typically
16bccca @fxn removed references to RJS from the AP README
fxn authored
23 used to inline short Ruby snippets inside HTML), and XML Builder.
a1023b0 @mislav improve Action Pack README
mislav authored
24
25 With the Ruby on Rails framework, users only directly interface with the
26 Action Controller module. Necessary Action Dispatch functionality is activated
27 by default and Action View rendering is implicitly triggered by Action
28 Controller. However, these modules are designed to function on their own and
29 can be used outside of Rails.
30
db045db @dhh Initial
dhh authored
31
89b5e79 @mislav revise download/installation/support sections in READMEs
mislav authored
32 == Download and installation
db045db @dhh Initial
dhh authored
33
b905f8c @sukeerthiadiga Rubygems => RubyGems
sukeerthiadiga authored
34 The latest version of Action Pack can be installed with RubyGems:
db045db @dhh Initial
dhh authored
35
89b5e79 @mislav revise download/installation/support sections in READMEs
mislav authored
36 % [sudo] gem install actionpack
db045db @dhh Initial
dhh authored
37
89b5e79 @mislav revise download/installation/support sections in READMEs
mislav authored
38 Source code can be downloaded as part of the Rails project on GitHub
db045db @dhh Initial
dhh authored
39
111347f @raysrashmi The trailing '/' isn't being picked up by Github anyway, and the link wo...
raysrashmi authored
40 * https://github.com/rails/rails/tree/master/actionpack
db045db @dhh Initial
dhh authored
41
42
43 == License
44
2315e96 @imkmf Finished implementation of MIT license linking.
imkmf authored
45 Action Pack is released under the MIT license:
46
47 * http://www.opensource.org/licenses/MIT
db045db @dhh Initial
dhh authored
48
49
50 == Support
51
89b5e79 @mislav revise download/installation/support sections in READMEs
mislav authored
52 API documentation is at
db045db @dhh Initial
dhh authored
53
bfb9f75 @Karunakar changed http://api.rubyonrails.com to http://api.rubyonrails.org in rea...
Karunakar authored
54 * http://api.rubyonrails.org
89b5e79 @mislav revise download/installation/support sections in READMEs
mislav authored
55
56 Bug reports and feature requests can be filed with the rest for the Ruby on Rails project here:
57
9870afb @arunagw Some readme fixes as required.
arunagw authored
58 * https://github.com/rails/rails/issues
Something went wrong with that request. Please try again.