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 -- Posted via http://www.ruby-forum.com/.
Has anyone else had this oracle problem? -- Posted via http://www.ruby-forum.com/.
What problem? On Apr 4, 2006, at 9:56 AM, Chris wrote: Has anyone else had this oracle problem? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Tuesday, April 04, 2006, at 5:03 PM, Chris wrote:>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''>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 >It''s a regression introduced in Rails 1.1. There is a patch. It will be fixed in Rails 1.1.1. http://dev.rubyonrails.org/ticket/4457 -- Lori Olson http://blog.dragonsharp.com -- Posted with http://DevLists.com. Sign up and save your mailbox.
There''s a bug in Rails 1.1, fixed in edge rails. Chris wrote:> 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 >
I''m having this problem, too. I''m not even using oracle, but rather mysql. On 4/4/06, Michael Schoen <schoenm@earthlink.net> wrote:> There''s a bug in Rails 1.1, fixed in edge rails. > > Chris wrote: > > 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 > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >