loading...

Friday, December 24, 2010

RoR 3 components

The components of rails are as follows
  • Action Pack
    1. Action Controller
    2. Action Dispatch
    3. Action View
  • Action Mailer
  • Active Model
  • Active Record
  • Active Resource
  • Active Support
  • Railties
Action Pack
Action Pack is a single gem that contains Action Controller, Action View and Action Dispatch. The “VC” part of “MVC”.

Action Controller
  • Controls the application flow 
  • Controls the model and view 
  • managing user sessions
  • routing external requests into internal actions
  • managing Rails caching features
  • managing helper modules
Action View 
  • Renders both rhtml and rxml formats 
  • views are implemented using ERb(embedded ruby) by default 
There are three templating schemes known in Rails:

  • .rhtml, generates HTML views to users.
  • .rxml, lets developers construct XML documents using Ruby code, used widely to generate feeds in Rails-powered blogging engines.
  • .rjs, allows developers to create dynamic JavaScript codes, suitable for creating an AJAX interface.
Action Dispatch
  • handles routing of web requests
Action Mailer
  • framework for building e-mail services
  • receive and process incoming email
  • send simple plain text or complex multipart emails
Active model
  • provides a defined interface between the Action Pack gem services and Object Relationship Mapping gems such as Active Record
Active Record
It provides
  • database independence
  • basic Create, Read, Update and Delete(CRUD) functionality
  • advanced finding capabilities
  • ability to relate models to one another.
Active Resource
  • framework for managing the connection between business objects and RESTful web services
Active Support
  • collection of utility classes and standard Ruby library extensions.
Railties
  • Railties is the core Rails code that builds new Rails applications
  • glues the various frameworks and plugins together

No comments:

Post a Comment

fuzionpro Headline

fuzionpro