Skip to content

Commit 0983917

Browse files
authored
Merge pull request rails#43489 from grepsedawk/patch-1
Reorder layers to be MVC in README.md
2 parents 432b615 + 50ca6d2 commit 0983917

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ Although most Rails models are backed by a database, models can also be ordinary
2828
Ruby classes, or Ruby classes that implement a set of interfaces as provided by
2929
the [Active Model](activemodel/README.rdoc) module.
3030

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+
3139
## Controller layer
3240

3341
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
3846
controller classes are derived from `ActionController::Base`. Action Dispatch and Action Controller
3947
are bundled together in [Action Pack](actionpack/README.rdoc).
4048

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-
4949
## Frameworks and libraries
5050

5151
[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

Comments
 (0)