Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

Facts of Ruby Programming and Ruby on Rails Framework

Ruby is a dynamic, open source and object-oriented programming language with a focus on simplicity and productivity. Ruby was initially designed and developed by Yukihiro Matsumoto in Japan during mid-1990. Ruby has an elegant syntax that is easily readble and writable. Syntex of Ruby is very similar to Perl. It is also based on Smalltalk, Eiffel, Ada, and Lisp.

Words from Founder of Ruby : I wanted a scripting language that was more powerful than Perl, and more object-oriented than Python.

Technical talk of Ruby :

It is a strong Object oriented programming language which also has single inheritance as in Java. It also provides us with the feature called as mixins. Using mixins we can easily import methods from multiple classes using modules.

Ruby on Rails, famously shortened to Rails or RoR is a powerful, open source, full-stack web application framework for the Ruby programming language. It is using Model-View-Controller structure (MVC architecture) and famous for developing database intensive web applications. Ruby on Rails was extracted by David Heinemeier Hansson from his work on Basecamp, a project management tool by 37signals (now a web application company).

Technical talk of Ruby on Rails :

 

Ruby on Rails provides several inbuilt tools intended to make some development tasks easier. Rails provides scaffolding which will automatically construct some of the models and views needed for a basic website. A ruby web server and core library are also included. By including these common tools with the Rails framework, a basic development environment is in effect. You must have to start web server to run Ruby on Rails. Rails is also eye catching for its extensive use of JavaScript libraries Prototype and Ajax.

Main Features of Ruby on Rails :

  • It is Based on Ruby – Ruby is a very powerful programming language.
  • Implements MVC Framework – Rail is actually a Model-View-Controller framework for Ruby.
  • Reflection and Discovery – Rails use intelligent reflection and discovery to automatically map relational database tables to Ruby objects.
  • Less Coding – Due to lot of inbuilt functionality, Rails require lesser amount of code to implement the business logic.
  • Automated Operations – Rails can automatically generate CRUD (Create, Retrieve, Update and Delete) code for the applications.
  • Simplified Testing – Rails includes a Rake (Ruby Make) script that will automatically run all unit tests. Apart from this, Strict MVC architecture naturally gives result in testable actions and components.

Framework structureRuby on Rails is separated into various packages, namely ActiveRecord (an object-relational mapping system for database access), ActiveResource (provides web services), ActionPack, ActiveSupport and ActionMailer. Prior to version 2.0, Rails also included the Action Web Service package that is now replaced by Active Resource. Apart from standard packages, developers can make plugins to extend existing packages.

As Ruby on rails is an Object oriented, open source framework and free to be implemented by everyone. This is the reason why Ruby on Rails has acquired a significant position in programming.

To know more about programming , php info , php editor , programming php,Open-source, php help and php script , subscribe to our feed by entering email address below. You will get updates via email about every tutorial posted on this site . It will not take more than a sec.

Enter your email address:
 
Feel free to ask any question. Just leave your comment below and we will answer your comment with in 24 hours.
Share:

14 Comments

  • william

    thanks a lot….

    I am working on cakephp right now..

    I hope in near time I study Ruby and could find difference between cake & ruby.

    also i will wait for more articles over here and hope that those will help me in future when i will start ruby.

  • william

    thanks a lot….

    I am working on cakephp right now..

    I hope in near time I study Ruby and could find difference between cake & ruby.

    also i will wait for more articles over here and hope that those will help me in future when i will start ruby.

  • Brian

    Both ruby and RoR are extremely Linux-centric. You can get them to work on Windows, but many libraries (gems) don’t work on Windows, because the prevailing attitude in the Ruby community is “switch to Linux”. You will spend a lot of time trying to find workarounds to basic problems, especially when you start using non-core libraries (gems).

  • Brian

    Both ruby and RoR are extremely Linux-centric. You can get them to work on Windows, but many libraries (gems) don’t work on Windows, because the prevailing attitude in the Ruby community is “switch to Linux”. You will spend a lot of time trying to find workarounds to basic problems, especially when you start using non-core libraries (gems).

  • Brian

    For example: Just after I posted, I attempted to ‘gem install ruby-opengl’ on Windows. It failed, stating ‘Failed to build gem native extension’. Okay, so I googled the problem. Below is what I found, and is very typical for getting things to work with Ruby and Windows.

    Many, many times I have tried to use a third-party gem only to find that I had to monkey with core files in my Ruby installation. They’ll say “simply update file X” or “replace file Y”. As if no one else’s gem is doing the same thing. It’s shameful, really. Here’s what I found in this case:

    “For manual build on Windows you need to have platform SDK and compiler that must match the one which was used for compiling ruby binary (for One-click ruby installer it is MSVC 6.0). You may also need ‘glut.h’ in SDK include directory, as the One-click ruby installer is missing it. You can copy the file from glut package at glut homepage. Alternatively, you can install the precompiled binary gem (see bellow).

    Important note: If you are using the One-click installer version 1.8.6-25 or earlier, you must delete or rename files ‘opengl.so’ and ‘glut.so’ in C:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt”

Leave a Reply

Your email address will not be published.