The technique we used was quite a hack as this is something that ActiveRecord wasn’t designed to do but now in Rails 3.0 we have a new feature called ActiveModel which makes doing something like this a lot easier. Before … Continue reading
Category Archives: Ruby on Rails
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
How to deploy rails website with passenger -rails deployment with passenger
While working with PHP, I realized that deployment of a PHP application is far more easier as compared to deployment of a Ruby on Rails application. So I was wondering if there could be a way to deploy a Ruby … Continue reading
Ruby 1.9.1 is came with performance improvement of 63%
Ruby is very powerful object oriented language. Working with pure Ruby is really fun and interesting to me. I am real fan of Ruby language. I am working Ruby on Rails for around last four years. There is always I … Continue reading
Ruby on Rails 3.0 released with new features
I am working on Ruby on Rails for past three and half year. It is really great to working with Ruby on Rails. Because working on Ruby on Rails is a really great feeling daily inventing new things, trying new … Continue reading
Rails 3 beta by February
Ruby on Rails 3, an upgrade to the popular Web development framework that merges Rails with the alternative Merb framework, is due to be offered as a beta release by the end of this month. According to David Heinemeier Hansson, … Continue reading
How to host multiple rails site on Nginx
User following code in Nginx.conf file.. and paste into that file #vim /etc/nginx/nginx.conf Incoming search terms:nginx multiple rails
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