October 14, 2013 by samarthasthana
But amoung these existing technologies we have a relatively new kid on the block. Ruby on Rails is making waves.
Its easy to learn, intuitive to understand and because it uses a Completely Object Oriented language ‘Ruby’, its Kickass
The biggest problem that any aspiring Ruby on Rails developer faces is the installation process.
Ruby on Rails <RoR>, provides so many existing libraries in form of gems that handling gems and installing all that
is required to create a efficient working web site becomes hard at times.
To have a working demo website you are required to have the following installed in your dev system.
- Ruby <any version will do>
- Devkit <its not optional, its required to create a native environment for many crucial gems>
- RVM <if you are picky about the gems installed in your system>
- Rails <without this nothing works>
Now to install these seperate components, I have used time and again the following links and it has worked.
Versions have to be picked quite preceicly.
Version installed: 1.9.3
Choose the apropriate tar/zip and follow the instructions, its generally just unzipping, there are windows installer for the
ones who love the exe’s
Version Installed : DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
Again unzip into a new devkit named folder and follow the instructions given in the following link.
The easiest, gem install rails
Its not mandatory but is an add on. You can find it here
Once every thing seems to be installed. Take it for a spin
run the following command
rails new demoapp
This would install all the required gems to your system and then create a rails’ app in a new Folder.
cd to that folder and run
This would launch the app on http://localhost:3000
If you encounter errors while installing gems <generally a problem with installing jquery or sass or uglifier or mysqlite2>, install the
gems one by one instead of running rake bundle install
Also make sure the devkit is installed properly or else you might encounter errors saying ‘ERROR: Failed to build gem native extension’
Once you have your app running, there is no turning back. Mind the conventions and code away to glory. Cheers