Erro de update no rails 2.3.2


#1

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:inupdate_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:inupdate_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:inupdate’
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:increate_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:insave_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:insend’
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:intransaction’
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:inwith_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:inrollback_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:inenviar_rede’

Alguem poderia me ajudar?


#2

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/