You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,14 @@ Although most Rails models are backed by a database, models can also be ordinary
28
28
Ruby classes, or Ruby classes that implement a set of interfaces as provided by
29
29
the [Active Model](activemodel/README.rdoc) module.
30
30
31
+
## View layer
32
+
33
+
The _**View layer**_ is composed of "templates" that are responsible for providing
34
+
appropriate representations of your application's resources. Templates can
35
+
come in a variety of formats, but most view templates are HTML with embedded
36
+
Ruby code (ERB files). Views are typically rendered to generate a controller response
37
+
or to generate the body of an email. In Rails, View generation is handled by [Action View](actionview/README.rdoc).
38
+
31
39
## Controller layer
32
40
33
41
The _**Controller layer**_ is responsible for handling incoming HTTP requests and
@@ -38,14 +46,6 @@ In Rails, incoming requests are routed by Action Dispatch to an appropriate cont
38
46
controller classes are derived from `ActionController::Base`. Action Dispatch and Action Controller
39
47
are bundled together in [Action Pack](actionpack/README.rdoc).
40
48
41
-
## View layer
42
-
43
-
The _**View layer**_ is composed of "templates" that are responsible for providing
44
-
appropriate representations of your application's resources. Templates can
45
-
come in a variety of formats, but most view templates are HTML with embedded
46
-
Ruby code (ERB files). Views are typically rendered to generate a controller response
47
-
or to generate the body of an email. In Rails, View generation is handled by [Action View](actionview/README.rdoc).
48
-
49
49
## Frameworks and libraries
50
50
51
51
[Active Record](activerecord/README.rdoc), [Active Model](activemodel/README.rdoc), [Action Pack](actionpack/README.rdoc), and [Action View](actionview/README.rdoc) can each be used independently outside Rails.
0 commit comments