RSSAll Entries Tagged With: "rails"

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 a deal [...]

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 [...]

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 reasons (and solutions) for this [...]

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 compared to [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes