On Thu, Apr 9, 2009 at 9:55 AM, tyliong <tyli...@gmail.com> wrote:
>
> When i use Model.all and i want to save this one value into all the
> rows of the model how do i do it without using a "for" loop.
> >
>

Model.update_all -
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002218

Andrew Timberlake
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

"I have never let my schooling interfere with my education" - Mark Twain

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to