update_all is for ActiveRecord...use class_name.update_all
On 6/1/06, iphan iphan <iphan@isb-sib.ch> wrote:>
> Hi
>
> has anyone managed to use update_all with rails on postgres?
>
> In my setup, it does not work:
>
> >> @keyword.update_all(myupdates)
> NoMethodError: undefined method `update_all'' for
#<Keyword:0xb7ac4670>
> from
> /home/lib/ruby/gems/1.8/gems/activerecord-1.14.0
> /lib/active_record/base.rb:1786:in
> `method_missing''
> from (irb):14
>
>
> I checked that the base.rb class contains the update_all method, so it
> seems like
>
> connection.update(sql, "#{name} Update")
>
> isn''t working
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Cheers,
ioana k&a
http://boulangerie.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060601/da266646/attachment.html