mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Reorder layers to be MVC in README.md
Right now the headings align as "MCV" after previously mentioning "MVC" Reorder the headings to make this parallel
This commit is contained in:
parent
1140f29264
commit
50ca6d2600
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
@ -28,6 +28,14 @@ Although most Rails models are backed by a database, models can also be ordinary
|
|||
Ruby classes, or Ruby classes that implement a set of interfaces as provided by
|
||||
the [Active Model](activemodel/README.rdoc) module.
|
||||
|
||||
## View layer
|
||||
|
||||
The _**View layer**_ is composed of "templates" that are responsible for providing
|
||||
appropriate representations of your application's resources. Templates can
|
||||
come in a variety of formats, but most view templates are HTML with embedded
|
||||
Ruby code (ERB files). Views are typically rendered to generate a controller response
|
||||
or to generate the body of an email. In Rails, View generation is handled by [Action View](actionview/README.rdoc).
|
||||
|
||||
## Controller layer
|
||||
|
||||
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
|
|||
controller classes are derived from `ActionController::Base`. Action Dispatch and Action Controller
|
||||
are bundled together in [Action Pack](actionpack/README.rdoc).
|
||||
|
||||
## View layer
|
||||
|
||||
The _**View layer**_ is composed of "templates" that are responsible for providing
|
||||
appropriate representations of your application's resources. Templates can
|
||||
come in a variety of formats, but most view templates are HTML with embedded
|
||||
Ruby code (ERB files). Views are typically rendered to generate a controller response
|
||||
or to generate the body of an email. In Rails, View generation is handled by [Action View](actionview/README.rdoc).
|
||||
|
||||
## Frameworks and libraries
|
||||
|
||||
[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.
|
||||
|
|
Loading…
Reference in a new issue