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
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 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
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
User following code in Nginx.conf file.. and paste into that file #vim /etc/nginx/nginx.conf
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
Use following code for setting up Nginx for rails.
Installation of Apatana in Detail 1. Download zip file from this location(http://www.aptana.com/studio/download) File name:Aptana_Studio_Setup_Linux_1.2.7.zip 2. Then uncompress the .zip file. and copy the resulting ‘aptana’ folder under ‘/home/siwan’.(siwan is my username for fedora, you have replace your username) 3. Install … Continue reading