Friday, June 10, 2005

Annoying Session Problem

Yesterday I was following "DEpot" example in Ruby on Rails book . I spend like 2 hours trying to get Cart part to work. I tried everything , it kept giving me "NoMethodError" exception. I was so frustrated, that I shutdown my computer. After sometime, I restarted my computer and tried again ... magic.. it worked :)

I have no idea , what happened?

Wednesday, June 08, 2005

Using Localization in Windows

By default Ruby in windows doesn't come with iconv. So when we use Localization in our application, it will fail in windows saying "No such file to load -- iconv" . To fix this problem,

Download iconv from Sourceforge here:
http://prdownloads.sourceforge.net/gettext/libiconv-1.9.1.bin.woe32.zip?download

and extract the .dll to your Ruby directory (e.g. c:\ruby)

  • iconv.dll goes to c:\ruby\bin
  • if that doesn’t work, put iconv.dll in c:\windows\system32

Then, you’ll need to download ruby from
http://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.2-i386-mswin32.zip

And extract the iconv.so to your ruby directory also.

*iconv.so goes to lib\ruby\1.8\i386-mswin32\iconv.so

If you get a version mismatch error, try the iconv files from
http://www.dll-files.com/dllindex/dll-files.shtml?iconv

Tuesday, June 07, 2005

Running Production Ruby On Rails Application in Windows

Check this manual if you want to run your Ruby On Rails production application in windows
http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003

Monday, June 06, 2005

A Guide to Testing Rails Application

Being Unit Test addicted developer, I first wanted to find out how to write unit tests for my Ruby application. I wanted to find is there any framework like JUnit. When I googled, I found this amazing manual which covers everything about testing a Rails application.

Check it out
http://manuals.rubyonrails.com/read/book/5

Sunday, June 05, 2005

Some Important Links for Ruby

To download Ruby
http://www.ruby-lang.org/en/20020102.html

Good introduction about Ruby
http://www.rubycentral.com/misc/intro.html

If you are interested in being a part of Ruby
http://www.ruby-lang.org/en/

Awesome book on Ruby
http://www.rubycentral.com/book/index.html

Everything you need to know about Ruby on Rails
http://www.rubyonrails.org/

Nice tutorial for Ruby on Rails
Part 1
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
Part 2
http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html

Eclipse plugin for Ruby
http://sourceforge.net/projects/rubyeclipse

Place for open source Ruby projects
http://rubyforge.org/


If you guys find some new sites let me know, I will add it to my list.

Saturday, June 04, 2005

Introduction

I've heard so many good things about Ruby and Ruby on Rails. I felt its time for me to try it. I created this blog to share my experience learning Ruby and Ruby on Rails. I've always believed that the best way to learn a language is by doing a small project using it. I'm doing an open source project in Ruby on Rails. I am sure by contributing to that project, I will learn a lot more about Ruby.

Wish me luck!