Marnen Laibow-Koser wrote:
> Patrick Clas wrote:
>> I thought this was possible using the update_all method of
>> ActiveRecord...no?  
> 
> You're quite right.  I had forgotten about that method.
> 
>> If not, then I will just write native sql commands
>> instead.
> 
> No, use something like ar-extensions if update_all won't do the trick. 
> If you're writing SQL for a task this simple, then something is wrong.
> 
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]

Well the task isn't as simple as it seems.  I have it working fine now 
with SQL, rails just seems to be lacking a bit in this area.  Of course 
I realize they have to be since they are supporting more than just 
mysql.
-- 
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