Sunday, August 22, 2010

Ruby 1.9.2 for windows is released

Ruby 1.9.2 for windows is released, You can find the binaries here. You will also find all instructions required for installation.

An example of setup with rails 3 was documented on this blog.

Saturday, August 21, 2010

RVM issues while setting up Ruby 1.9.2 and Rails 3 rc2 on Lucid Lynx

In order to test rails 3 and ruby 1.9.2, I've migrated to Ubuntu 10.04. During the installation I ran into a few issues and had conflicts with both my version of OS and my versions of ruby.

Here is the list of the lessons learned :

Rule number 1 : always install the latest version of RVM (it's updated very frequently). gem install rvm

Rule number 2 : Go and modify your bash files when it tells you to do so (I did not do it at first and it completely messed up my later installs, with RVM mixing old and new paths for gems).

Rule number 3 : On lucid lynx (Ubuntu 10.04), you cannot update the rubygems by doing gem update -system. It's likely that you will have version 1.3.5 as it is the official version supported by the distribution. To upgrade to the required 1.3.7, follow this procedure :

sudo gem install rubygems-update
sudo rubygems_update


when you do gem --version
you should now see > 1.3.7 instead of > 1.3.5

if you still see 1.3.5, i suggest you to do the following before the above procedure:

sudo apt-get remove rubygems

Rule number 4: install the pre-requisites for Rails 3 rc2

gem install tzinfo builder memcache-client rack rack-test erubis mail text-format bundler thor i18n


Rule number 5: install rails

gem install rails --pre

VoilĂ , you can now start to play or upgrade your apps (see the screencasts below).

As soon as Luis Lavena releases the new 1.9.2 ruby installer I will try and document the same process on windows (with PIK, the windows equivalent of RVM).

There are a lot of great Rails 3 tutorials available now. If you start I recommend the railscasts numerous episodes on the topic or the envylabs screencasts made for the latest railsconf. They both do a fantastic job for the community.

For the help with the install, the credits go to the people in this thread.

Thursday, August 19, 2010

Thursday, August 12, 2010

How to develop live search textbox in Ruby on Rails

A nice tutorial for a live search textbox using jquery can be found here