Archive for January 12th, 2011

Greetings !

Today our mentor Mr. Thyagarajan took class on Ruby on Rails

Since most of us didn’t clearly understand the concepts yesterday we asked him to repeat it (yesterday’s class)

Since Ruby on Rails is used to develop dynamic web applications  he ( our mentor ) made us to understand the difference behind Static Web Page and Dynamic Web Page

I clearly understood from his explanation

Here’s my view on what i know about them

Static Web Page

a. A static web page is created using HTML tags

b. The content displayed in static web page remains the same, as many times the user requests the page via browser

c. Retrieval of information from a database is not required

Example : The web page displaying the Contact Address of a site

Dynamic Web Page

a. A dynamic web page is created using scripting languages ( Javascript, PHP, Perl etc.. ),  web application frameworks ( Ruby on Rails, Django etc …)

b. It displays the content that is generated everytime the user requests the page via browser

c. Information fetched from a database may or may not be required

Example : The web page displaying weather reports

So, therefore we conclude that Ruby on Rails builds rapid dynamic web sites

Then i learnt how the control is transfered  to the  controller in RoR via routes.rb

What is routes.rb ?

When a URL request is sent from the browser in Rails, the router (routes.rb) routes it to the appropriate controller

The controller files are placed in app/controller

The necessary files inside app/controller perform seven basic CRUD ( create, retrieve,update,delete ) operations

* new

* create

* show

* index

* edit

* update

Then our mentor gave taught the basics of Object Orientation in Ruby

He compared to illustrate the powerfulness of Object Oriented Programming in Ruby than any other programming language

He then explained about class Class and class Object in Ruby with so many real world examples in order to make us to understand.

class Class defines a standardized way of representing a class / how it should be

class Object gets life from a Class and acquires the right to play with its data and methods

He gave two examples in which new methods are added  into  in-built classes

This below code adds a method to String class

It will ouput the string inside the method

class String

def show

puts "Welcome"


s = "Ruby"



class String

def show

puts "Welcome"





This adds a method to a in-built class Integer.

This will output the number with spaces

class Integer

def format_to_two_digit




print 5.format_to_two_digit,7.format_to_two_digit

Then i started to play with ExtJS calendar from here http://dev.sencha.com/deploy/dev/examples/calendar/index.html

It was refered by our mentor Mr. Chandrashekar

I wondered about the calendar features

This calendar matches our requirement for our Trainers Union project

Then i looked around many examples  ExtJS from here http://dev.sencha.com/deploy/dev/examples/

Download ExtJS

To install ExtJS i downloaded the ExtJS 3.3.1 from here http://www.sencha.com/products/js/download.php

Extracted and copied into document root i.e., /var/www

I didnt start to work with ExtJS

Hope to get started by tomorrow

By 3.45 we all gathered for a SCRUM Meet and i told like i learnt the basics of Ruby on Rails, Object Orientation in Ruby, explored a bit on ExtJS


Read Full Post »