From: Christopher Small Date: 2008-07-02T03:05:28+09:00 Subject: Re: Problem with Ruby Multithreading I received this private mail from Neha Gupta >Thanx for your reply. >By finders i mean, I am unable to use ".find" methods in my >thread. >And some_method was just a temporary name I used in my example. Actual >method name is create. >I am trying to create a new thread and do few database insert >operations in the thread. >Is that possible to do in RoR ? I'm not sure why you are having issues with the find method, but if you provided some code it might be easier to troubleshoot. There is a rails way to create multiple objects with 1 call to create. You might want to take a look at the following screencasts - they helped me when I was in a similar situation to yours http://railscasts.com/episodes/74 They are very good screencasts, and although they might not be tailored to exactly your situation, they should help you along your way. I think you are probably going to want to start inside of your new definition within the controller to build the users from within that method call. Then you need (depending on how you want to work things) to figure out how to handle things in your views (with forms and what not - you'll probably have to use fields_for in addition to form_for) and how you do that determines how you will write your create method to get things working. If you post back on this forum with more specific details of what exactly you are looking to do, someone can give more help. The screencasts will likely get you far though (methinks). Cheers, and good luck! -- Posted via http://www.ruby-forum.com/.