From: Christopher Small Date: 2008-07-01T17:19:06+09:00 Subject: Re: Problem with Ruby Multithreading First of all, do you mean "multithreading" as in the context of wikipedia's definition (http://en.wikipedia.org/wiki/Thread_(computer_science)), because if so, I don't see the connection. Otherwise, I imagine that you are talking about forums with multiple threads, or something to that effect. > I am trying to use threads in my RoR app. > But unfortunately I came across a very strange issue. > I am unable to use "finders" within my thread to read data from my > database. Are "finders" a specific sort of object in RoR? If so I know nothing about them. If you are talking about find methods to search through database entries, that's another thing - is this what you mean? > In addition to this, the Thread does not allow me to create any new > object inside the Thread. > > Eg: > > class TagsController < ApplicationController > > def some_method > > begin > Thread.new do > new_user = User.new > end > rescue > p $! > end > > end > > end > > Throws an exception saying > "# module tree but is still active!>" First of all, are you writing your app RESTfully? What is "some_method"? Also, I'm not quite clear about what you are trying to do here - is it create a new thread and a new user at the same time? I hope that I can be of some help. -- Posted via http://www.ruby-forum.com/.