Skip to content

Lecture 04

deepj edited this page Oct 31, 2011 · 15 revisions

About Ruby On Rails

  • http://www.rubyonrails.org
  • Created by David Heinemeier Hansson aka DHH in July 2004 by extracting code from a famous project management tool Basecamp
  • Written in Ruby and using strongly power of Ruby (meta-programming, duck-typing and so on)
  • Model-View-Controller architecture
  • Strong opinionated software (The Rails Way), no each Ruby developer likes Rails
  • Magic – less code => maximum effect => sometimes it isn't clear what, how and why that happens inside Rails
  • Rails philosophy is based on Don't Repeat Yourself (DRY), Convention over configuration (CoC) and REST (Representational state tranfer)

Rails architecture

Ruby on Rails is based on the model-view-controller architecture which is composed of several components by the following way:

Rails 3.1 architecture

Components of Rails

  • Action Pack
    • Action Dispatcher
    • Action Controller
    • Action View
  • Active Model
  • Action Mailer
  • Active Records
  • Active Resource
  • Active Support
  • Railities
Action Pack
Action Dispatcher
Action Controller
Action View

Lecture

This lecture is based mainly on the guide Getting Started with Rails and other guides from Rails Guides which is very suitable for beginners.

During the lecture will be demonstrated each odd part of Rails MVC architecture. For further and deeper reading about Ruby On Rails we recommend to take a look at the following list of additional resources about Ruby On Rails which can help you in understanding or expending knowledge:

Clone this wiki locally