Forum: Ruby on Rails Erro de update no rails 2.3.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
WilsOnRails (Guest)
on 2009-04-01 21:51
(Received via mailing list)
Pessoal, estou precisando de ajuda...
Estou usando o rails 2.3.2.

Quando tento fazer qualquer update (m├ętodo save em um registro
existente), recebo o erro abaixo:

ArgumentError in RequisicaosController#enviar_rede
wrong number of arguments (3 for 1)

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:2875:in `attributes_with_quotes'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:2875:in `update_without_lock'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
locking/optimistic.rb:81:in `update_without_dirty'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
dirty.rb:146:in `update_without_timestamps'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
timestamp.rb:38:in `update_without_callbacks'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
callbacks.rb:282:in `update'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:2868:in `create_or_update_without_callbacks'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
callbacks.rb:250:in `create_or_update'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:2539:in `save_without_validation'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
validations.rb:1009:in `save_without_dirty'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
dirty.rb:79:in `save_without_transactions'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
transactions.rb:229:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
transactions.rb:229:in `with_transaction_returning_status'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/database_statements.rb:142:in
`transaction'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
transactions.rb:182:in `transaction'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
transactions.rb:228:in `with_transaction_returning_status'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
transactions.rb:196:in `save'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
transactions.rb:208:in `rollback_active_record_state!'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
transactions.rb:196:in `save'
C:/RoR/dev/asac/app/controllers/requisicaos_controller.rb:194:in
`enviar_rede'


Alguem poderia me ajudar?
Greg D. (Guest)
on 2009-04-02 01:29
(Received via mailing list)
On Wed, Apr 1, 2009 at 11:07 AM, WilsOnRails 
<removed_email_address@domain.invalid> wrote:
>
> Pessoal, estou precisando de ajuda...
> Estou usando o rails 2.3.2.

http://www.catb.org/~esr/faqs/hacker-howto.html#skills4


--
Greg D.
http://destiney.com/
This topic is locked and can not be replied to.