Ruby on Rails is a web application framework written in Ruby. It utilizes conventions over configurations and follows the MVC pattern. The framework aims to make development easier and faster with libraries, classes, and methods that require less code but achieve better results. Rails uses ActiveRecord for models, ActionView for views, and ActionController for controllers.
2. A collection of good libraries,
less works but achieve better
results and faster.
There are lots of nice tools,
classes and methods to make
development easier.
2Ruby on Rails08/22/13
3. Ruby is:
• A High Level Programming
Language
• Originated in Japan and Rapidly
Gaining Mindshare in US and
Europe.
3Ruby on Rails08/22/13
4. Why Ruby ?
• Easy to learn
• Open source
• Very easy to extend
• Truly Object-Oriented
• Less Coding with fewer bugs
4Ruby on Rails08/22/13
5. Rails is
• A web-application framework
written in Ruby by David
Heinemeier Hansson.
• Model-View-Controller
5Ruby on Rails08/22/13
6. Model (ActiveRecord ) :
Maintains the relationship between
Object and Database and handles
validation, association, transactions,
and more.
6Ruby on Rails08/22/13
7. View ( ActionView )
A presentation of data in a particular
format, triggered by a controller's
decision to present the data.
7Ruby on Rails08/22/13
8. Controller ( ActionController ):
is the logical center of your application.
It coordinates the interaction between
the user, the views, and the model.
8Ruby on Rails08/22/13
10. This can be created by using sample
helper command
C:InstantRailsrails_apps>rails demo
Then you will find a directory structure
as follow:
10Ruby on Rails08/22/13
16. 16Ruby on Rails08/22/13
Rails will try to use Mongrel and
lighttpd if they are installed,
otherwise Rails will use WEBBrick,
the webserver that ships with ruby.
17. 17Ruby on Rails08/22/13
Windows users are encouraged to
Start with Mongrel because it is a
Ruby-based webserver that is
suitable for development and
deployment of Rails applications.