Whitepaper Ruby On Rails
Solutions
www.softwebsolutions.com
Ruby
Ruby is object-oriented language with characteristics like elegance, ease of usage and learning, clarity of syntax and pragmatism. Ruby originated in Japan in 1990 and became popular since last 2 years because of the availability of materials in English and the great platform Rails.
Rails
Rails is the most popluar framework for the ruby for developing the database application. Rails provides ten times faster development than java framework with maintaining the same quality. In addition to that rails is most compact platform.
Consulting
Technology
Outsourcing
It favors
Individuals and interactions over processes and tools. (no heavy toolsets, no complex configurations, no elaborate process) Working software over comprehensive documentation.(it is very easy to create the entire HTML documentation for heavy code base) Customer collaboration over contract negotiation. (Development respond time is less, there will be quick satisfaction of the customer's queries and customers will have perceptible result very soon.) Responding to change over following a plan.
MVC (Model View Controller)
MVC divides every logical entity of the software development in separate area of functioning.
HTTP, RSS, ATOM or SOAP Browser or client Browser or client
Apache, WeBrick or Lighttpd Web Server
Invokes FastCGI, mod_ruby or CGI processor
Requests
Forwards XML response XHTML, CSS, JS & images, XML
Dispatcher Handless some validations
Responds
Displays Action View
Loads CRUDs Respond
Renders Delegates
Controller
Active Record Queries Data or Errors
Action WebServices
Redirects Delivers
Database Action Mailer
MySQL, PostgreSQL or Oracle
Model
It is something more than just data. All business rules are being covered by the model. Before, making datatransactions with the database, model checks the data integrity as far as the business rules are concerned.
Action Mailer
Action Mailer is the simple Rails component which allows your application tom send and receive emails.
Rack Migrate
Rack Migrate is the utility by which we can create the whole script file for the database for creating new database, migrating or modifying the exsting database.
Dispatchers
Dispatchers are responsible for accepting the incoming requests from user sitting at their browser and directing those requests to the code in our application.
Environment of Rails: Development Environment
this environment reloads the application on every request and make sure none of the caching mechanism is active.
View
View defines various ways for inputting data for the user and various ways of displaying the data.
Controller
Controller identifies the event from outside world make the decision which model should be used to process that event and which view will serve the result.
Filters
Filters are objects that wrap the execution of actions.
Production Environment
When we deploy our application, we use the production environment, where ease of development is traded for speed.
Helpers
Helper is simply a module containing the method that assist a view.
ORM (Object Relationship Mapping)
Sometimes, in Object Oriented Language it is very difficult to judge that the application development should be database centric or the database development should be application centric. ORM solves this issue. ORM libraries maps database to classes. Means if the database has the table then program has class. If the table has rows then class has objects.
Test Environment
Sometimes you need the data in fixture to change based on a conditions, at that time you can do it in test environment. Various types of database like MySql, Oracle and Postgre SQL can easily be supported by the RoR. Deployment of AJAX, Java script special effects, CSS are being fairly simple with the ruby on rails. Development of different types of relationship with the database like one to many, many to many or many are very handy to define in RoR Validation controls are easily applied by specifying one or two lines per validation. Open source and various plugins
Web Servers for Ruby On Rails Applications: Webrick
Webrick is the most popular one with Ruby On Rails. comes with Ruby On Rails Not fast and easily scalable. Easy to run and free of Dependencies.
Active Record
Active Record is the ORM layer supplied with the rails. In active record, tables maps to class, rows to objects and columns to object attributes.
Apache
Ubiquitous. Versatile, reasonably fast. Capable of running rails on only CGI mode.
Action Pack
Action Pack is the combination of action view and action controller. Means if particular event is generated then action packs decides about controller which handles the event and view which generates layout for the page or response related to that event.
Lighttped-cgi
Easy to setup Having good speed. Fair enough scalability.
About Softweb Solutions
Softweb Solutions is a Chicago, Illinois based leading IT service provider of high-end software outsourcing development services for SMEs, specializing in custom application development, website development, system integration and software testing and quality assurance, with industry-specific software expertise in Technology, Financial, Healthcare media sectors.
What's next?
To learn how Softweb can help you outperform, reach us at E-mail: info@softwebsolutions.com Call US: 1-866-345-7638
Solutions
www.softwebsolutions.com
Disclaimer : The advice, views, experiences, opinions and other information shared in the Softweb Solutions Articles are researched to the best of our ability. At the time of publication, we believe them to be correct. Softweb Solutions can not and will not guarantee that any of the information here is accurate, and results will vary. Use this information at your own risk. All information herein is offered "as is" and without warranty of any kind. Softweb Solutions and its contributing authors, are not responsible for any loss, injury, or damage, direct or consequential, resulting from your use of any of the information and/or advice presented here.