Case Study: Improving Performance of MySQL, Thinking Sphinx in a Rails app

Recently, we faced a huge performance problem with one of our installed apps. The application is a Call Center ERP solution. The Call model is updated very frequently as there are about approximately 8,000 - 10,000 calls being made everyday. For every action there is an audit trail, so updates and inserts into database are … Continue reading Case Study: Improving Performance of MySQL, Thinking Sphinx in a Rails app

Fix/Solution for NoMethodError? (undefined method `controller_name’ for nil:NilClass)

This error appears when same action gets called twice. There might be chances to have controller with same name twice inside app as well as pluginsIn my case the error appeared while migrating from rails 2.1 to 2.3.Application was having application.rb and application_controller.rbFiles deleted:trunk/app/controllers/application.rbAnd that solved problem !

upgrading rails version

Here are the simple steps to be followed while upgrading rails version to use.# Install rails version1. gem install rails -v == gem install rails 2.3.3# Upgrade environment.rb for new version2. RAILS_GEM_VERSION = '' unless defined? RAILS_GEM_VERSION == RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION# Upgrade necessary files for the new version3. rake rails:upadte# Start server4. … Continue reading upgrading rails version