|
This installation tutorial for ruby on rails is for starters only. ROR is a web application framework that is written using Ruby programming language. This is used to simplify the work in creating the basic structure of all your applications. Ruby on Rails (ROR) uses a vast array of pre-written libraries to perform various operations within your application, including form data validation, application templates, date and time formatting and session management.
This is an open source framework launched in the year 2004 and it has gained its popularity over the years. This application was written with the help of ruby programming language and it helps you to save time on creating the basic structure of an application. It has many inbuilt libraries where you can take and implement immediately. Everyone knows about the popular site called twitter, most of the functionality in twitter has been done through ROR, and it gives you complete end to end coverage of all the aspects in a web development and moreover it’s very flexible and easy to learn.
What Ruby on Rails can do for you?
1. Very flexible in nature, you could have seen the popular applications like mail, maps are built through AJAX, and ruby on rails can integrate well with Ajax Data.
2. If you have done a software which basically creates you a report through web templates, now through ruby basic stuff can be done fast and as a programmer you can concentrate more on improving the functionality of the application rather than wasting time on the basic structure of an application.
3. Support AJAX, JavaScript and Xml.
Getting started with ruby on rails
Rails is a ruby interpreter, if you want to start working on a Ruby application in your system, the first thing you need to do is to download the framework of rails. If you want to use MySQL database its well and good, if you want to use some other databases you need to download the ruby libraries.
How to Install Ruby on rails in Windows or Mac OS X for developers?
For windows users, initially check whether already you have ruby, to find it out here is a trick. Go to Command Prompt and type “ruby –v” this command will tell whether you have already installed ruby on your system, if there is ruby it will show you the version number. After checking you can go to this URL location http://rubyinstaller.rubyforge.org and click download and run the installer that’s it you are done.
Installing Ruby on Rails in Mac OS X
1. First you need to check for the basic requirements, check whether the environment is OS X version 10.4( tiger) ships with the version Ruby 1.8.2 , do this check by initiating the main terminal application from there navigation to Applications From applications to utilities and just double click with your mouse on terminal and make sure you enter RUBY –V in the prompt if you get a error message back then it is understood that ruby is not installed. If you don’t have the Tiger version you need to install ruby 1.8.2 or the latest versions.
2. Installation of ruby gems visit http://rubygems.rubyforge.org and click download your Operating system will extract the archive just point out to a download directory. After doing it go the following directory and open the application and click the following commands
• User> tar xzf rubygems-0.8.10.tar.gz
• User>cd rubygems-0.8.10
• rubygems-0.8.10> sudo ruby setup.rb
• password: you are done
3. Its time to install the Ruby gems to run on rails. Open the terminal application and type these following commands user> sudo gem install rails — include-dependencies you are doing you are now on rails.
This tutorial is for information purposes only.
|