EVerything runs ok on my local machine but when i copy my app to our
solaris server everything is fine until i try updating/inserting
something into the DB.
This is the error message :
wrong number of arguments (1 for 0)
RAILS_ROOT: config/…
Application Trace | Framework Trace | Full Trace
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/oracle_adapter.rb:53:in
attributes_with_quotes_pre_oracle' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/oracle_adapter.rb:53:in
attributes_with_quotes’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1719:in
update_without_lock' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/locking.rb:33:in
update_without_callbacks’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:274:in
update_without_timestamps' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/timestamp.rb:39:in
update’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1712:in
create_or_update_without_callbacks' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:249:in
create_or_update’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1388:in
save_without_validation' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/validations.rb:724:in
save_without_transactions’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
save' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
transaction’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:91:in
transaction' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:118:in
transaction’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
save' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/associations/association_proxy.rb:110:in
method_missing’
#{RAILS_ROOT}/app/models/contact.rb:83:in
make_active_contact_for_employee' #{RAILS_ROOT}/app/models/contact.rb:80:in
make_active_contact_for_employee’
#{RAILS_ROOT}/app/controllers/user_preferences_controller.rb:17:in
`change_active_contact’
/opt/tools/bin/mongrel_rails:18
As i do not get this problem on my local machine i am tempted to assume
that it is something to do with the oracle driver, not really sure.
Does anyone have any ideas?
Thanks, any help is appreciated,
Chris