![]() ![]() ![]() 2.2.4 Action MailerĪction Mailer is a framework for building e-mail services. It provides database independence, basic CRUD functionality, advanced finding capabilities, and the ability to relate models to one another, among other services. 2.2.3 Active RecordĪctive Record is the base for the models in a Rails application. Action View manages rendering templates, including nested and partial templates, and includes built-in AJAX support. It can create both HTML and XML output by default. 2.2.2 Action ViewĪction View manages the views of your Rails application. Services provided by Action Controller include session management, template rendering, and redirect management. The Action Controller framework processes incoming requests to a Rails application, extracts parameters, and dispatches them to the intended action. Rails provides a full stack of components for creating web applications, including:Īction Controller is the component that manages the controllers in a Rails application. In Rails, controllers are responsible for processing the incoming requests from the web browser, interrogating the models for data, and passing that data on to the views for presentation. 2.1.3 ControllersĬontrollers provide the “glue” between models and views. Views handle the job of providing data to the web browser or other tool that is used to make requests from your application. In Rails, views are often HTML files with embedded Ruby code that performs tasks related solely to the presentation of the data. Views represent the user interface of your application. The bulk of your application’s business logic will be concentrated in the models. In most cases, one table in your database will correspond to one model in your application. In the case of Rails, models are primarily used for managing the rules of interaction with a corresponding database table.
0 Comments
Leave a Reply. |