Copyright © tutorialspoint.com

Ruby on Rails 2.1.x - Introduction

previous next

Advertisements

Pre-Requisite :

Before you start Ruby on Rails please make sure you have basic understanding on the following subjects:

What is Rails ?

There are a few other reasons behind Rails' success:

Full Stack Framework

Convention over Configuration

Don't repeat yourself (DRY)

Rails Major Strengths:

Rails is packed with features that make you more productive, with many of the following features building on one other.

Metaprogramming : Other frameworks use extensive code generation from scratch. Metaprogramming techniques use programs to write programs. Ruby is one of the best languages for metaprogramming, and Rails uses this capability well. Rails also uses code generation but relies much more on metaprogramming for the heavy lifting.

Active Record : Rails introduces the Active Record framework, which saves objects to the database. The Rails version of Active Record discovers the columns in a database schema and automatically attaches them to your domain objects using metaprogramming.

Convention over configuration: Most web development frameworks for .NET or Java force you to write pages of configuration code. If you follow suggested naming conventions, Rails doesn't need much configuration.

Scaffolding: You often create temporary code in the early stages of development to help get an application up quickly and see how major components work together. Rails automatically creates much of the scaffolding you'll need.

Ajax at the core: Ajax is the technology that has become a standard to provide interactivity to websites without becoming intrusive. Ruby on Rails has a great support for Ajax technology and it is part of the core libraries. So when you install RoR, Ajax support is also made available to you.

Built-in testing: Rails creates simple automated tests you can then extend. Rails also provides supporting code called harnesses and fixtures that make test cases easier to write and run. Ruby can then execute all your automated tests with the rake utility.

Three environments: Rails gives you three default environments: development, testing, and production. Each behaves slightly differently, making your entire software development cycle easier. For example, Rails creates a fresh copy of the Test database for each test run.

What is Rails 2.1.0 ?

This is the latest version of Ruby on Rails which has been released by the Rails core team on Saturday May 31, 2008.

This version is a further improvement on RoR 2.0 which was again really a fantastic release, absolutely stuffed with great new features, loads of fixes, and an incredible amount of polish over previous versions RoR 1.2.x.

This tutorial will take you through all the important features available in latest RoR version 2.1.0.

After this tutorial you should be able to build your website using one of the best Web 2.0 technologies called Ruby on Rails v2.1.0.


previous next

Copyright © tutorialspoint.com