Thanks Tom and Jermy. The problem was resolved by using the right 
version of Rails. The server version was 2.2.2 and my local computer 
version is 2.1.0. The code I posted worked fine after installing Rails 
2.1.0 gem on my server!
I might try the solutions you provided if I use later verion of Rails, 
the code I write might be getting interpreted differently with Rails 
2.2.2.
Cheers,
Tam
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to