Ruby 1.8.7-p299 version is released

Today Ruby released the new version of ruby – Ruby 1.8.7-p299. It is avaible for download from following URLs: * ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p299.tar.gz * ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p299.tar.bz2 * ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p299.zip Hello all. It’s time for a new release of 1.8.7. This time Ruby fixed various … Continue reading

USA State list for Rails

Every time we need this migration script for our projects Use following command for Model generate [siwan@localhost siwan]$ ruby script/generate model UsStates exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/us_states.rb create test/unit/us_states_test.rb create test/fixtures/us_states.yml exists db/migrate create db/migrate/20091117115011_create_us_states.rb [siwan@localhost siwan]$ … Continue reading

Issue with installing the mysql gem: solved, how to install mysql gem without issue

When tried to install mysql gem I got following error [root@localhost siwan]# sudo gem install mysql Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for mysql_ssl_set()… … Continue reading

How to setup mongrel cluster setup on fedora

First install the following gems: #su #gem install mongrel #gem install mongrel_cluster #cd project_name #mongrel_rails cluster::configure -e production -p 3000 -N 3 -c /home/siwan/project_name -a 127.0.0.1 —-prefix /project_name # mongrel_rails cluster::start You are able to start your applicaton at http://127.0.0.1:3000, … Continue reading