RSSAll Entries Tagged With: "rails"

File Uploading with Paper clip

This is one of the most useful plug in that can be used in your application when you require to upload a file as attachment to your application, its quite easy to use and with the help of paperclip scaffolding you can achieve file upload feature very easily, below i have explained the steps to [...]

Configure Sphinx in Rails application

Install Sphinx Just run the following three commands on your server or dev machine to install Sphinx: ./configure make sudo make install That will setup Sphinx with default for use with MySQL. If you want to use it with PostgreSQL, then run configure with the following flag: ./configure –with-pgsql Note: you can download the sphinx [...]

Install Image-magick and rmagick for rails

Start by removing any old versions previously installed via apt-get: sudo apt-get remove imagemagick Then update apt-get and install some supporting packages: sudo apt-get update *(sudo apt-get install libperl-dev gcc libjpeg62-dev libbz2-dev libtiff4-dev libwmf-dev libz-dev libpng12-dev libx11-dev libxt-dev libxext-dev libxml2-dev libfreetype6-dev liblcms1-dev libexif-dev perl libjasper-dev libltdl3-dev graphviz gs-gpl pkg-config)* *its a single line command. get [...]

RailsCarma — Partnership Opportunity

As you all might be knowing, we had launched a new service offering under the brand name RailsCarma few weeks back. RailsCarma specializes in offshore Ruby On Rails Development. You can read more about it here. You can contact us at sales@railscarma.com for any of your Ruby On Rails related needs. We can work out [...]

RailsCarma – Outsourced Ruby On Rails Development

InstaCarma launched a new service offering under the brand name ‘RailsCarma’ recently. RailsCarma (http://railscarma.com) specializes in Outsourced Ruby On Rails Development. With this venture we aim to provide an end-to-end solution which includes development, deployment, monitoring and management, including scaling support. We have been associated with the internet services industry for close to 7 years [...]

FastCGI : 500 internal server error

Issue : The site was throwing up ’500 internal server error’ and the following error appeared in the apache error logs. FastCGI: incomplete headers (0 bytes) received from server “/home/httpd/vhosts/default/fcgi-bin/phpfcgi” Fix : If you are getting  this error then it means that no headers are being returned when a request gets through to dispatch.fcgi Possible [...]

Error: SystemExit

Error : SystemExit (Define INLINEDIR or HOME in your environment and try again): /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.7.0/lib/inline.rb:93:in `abort’ Fix : Add the following line in the environment.rb file : ENV['HOME'] = ‘/home/username’

Problem with outdated RubyGems

Error : Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again . Fix : As it is clear from the error message, updating the RubyGems will resolve this issue. Reinstall the ruby gems using the following commands: gem install rubygems-update update_rubygems

Error : Gem::SourceIndex#search

Error : boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated Fix : There is a call to Gem Source Index in  boot.rb: ‘Gem.cache.search’ Just replace ‘search’ with ‘find_name’ . It should look something like this : rails_gem = Gem.cache.find_name(`rails’,”=#{rails_gem_version}.0″).sort_by { |g| g.version.version}.last

Installing Oniguruma and textpow

Issue : Sometimes, simply installing Oniguruma gem using gem install might not work well. Fix: To get around this , do the following : wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.1.tar.gz tar -zxvf onig-5.9.1.tar.gz cd onig-5.9.1 ./configure Now , you can install the gems using : gem install oniguruma gem install textpow

Action Mailer – Undefined method server_settings

Action mailer – method_missing: undefined method server_settings= for ActionMailer::Base:Class (NoMethodError)
The error occurs because in Rails 2.* server_settings has been replaced by smtp_settings.

Phusion Passenger (a.k.a Mod_Rails)

Have you ever come across a term called Mod_rails or passenger while visiting a ruby on rails site ? What is mod_rails ? Mod_rails is an Apache module that enables the Ruby on Rails application to work with Apache for delivering high performance. Various tests have proven that passenger apps are faster,reliable and robust when [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com