Jul 10

I had Rails 2.0.2 before i started my upgrade. When i executed the typical “sudo gem install rails”, i got the following error:

Bulk updating Gem source index for: http://gems.rubyforge.org/

Updating metadata for 13 gems from http://gems.rubyonrails.org/
………….
complete
Bulk updating Gem source index for: http://gems.rubyforge.org/
ERROR:  Error installing rails:
        invalid gem format for /Library/Ruby/Gems/1.8/cache/activesupport-2.1.0.gem

Continue reading »


Jun 15

I struggled a little with sending emails using Ruby on Rails framework. But you have to watch out for few things before you cry out for help.

1. Set the configuration at the end of everything in environment.rb

2. Make sure that you call the actionmailer derived controller method with deliver_

3. Create 2 view for html and plain text emails

I did a sample and bundled it here for easy example. Please download from here for your convenience.

Help from Wiki: http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer


Jun 06

Wow, this is an easy platform to get something going right away without worrying or spending time for deployment. Heroku is an online hosting provider for Ruby on Rails applications. I am using it for my projects and it’s great. Easy to use and works flawlessly.

URL: http://www.heroku.com/


May 23

If you have a mac with Mac OS X 10.5 (Leopard) and try to create Ruby on Rails application. It’s very simple. But it comes with Rails 1.8.6, but you may need to get rails 2.0.2 for your applications with latest changes.

Uninstall old version:
$ sudo gem uninstall rails

Install a particular version:
$ sudo gem install -v 2.0.2 rails

Install the latest and greatest version:
$ sudo gem install rails