Jillian Galloway wrote:
> I think you have to loop through the list saving one record each time, 
> but I
> could be wrong. 

And so you are.  It is never appropriate to put an SQL query inside a 
loop.

> If anyone's got a better way I'd love to know what it 
> is. :)
>

Use something like ar-extensions if possible.  If not, then build an SQL 
query string directly.

> 
> 
> On Tue, Oct 27, 2009 at 2:37 PM, John Mcleod <

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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