Sunday, August 29, 2010

Installing Ruby on Windows

After installing cygwin, next step is to install Ruby on your computer. For installing ruby refer to rubyonrails.org. Follow the simple steps specified there. For installing latest Rails:
gem install rails --pre

Now, it will be easy to install bundler also, because rather than typing gem install.... it would be easy to specify your gem requirements in Gemfile and running
bundle install

So, for that run the pre-requisite is
gem install bundler --pre

Furthermore, I am using Sqlite3 database server, you will have to install sqlite3 from http://www.sqlite.org/download.html.Choose sqlitedll-3_7_2.zip (265.70 KiB)and copy paste the exe file in your ruby/bin and do
gem install sqlite3
gem install sqlite3-ruby #(for connecting sqlite3 and ruby) 


If you just want to change the database server, you can simply change the adapter of your application_folder/config/database.yml.

Note: I am using "Ruby interpreter" for rails commands and cygwin for git commands.

No comments:

Post a Comment