Displaying 20 results from an estimated 60 matches for "save_without_valid".
2006 Aug 15
0
SystemStackError: stack level too deep
...backs.rb:296:in
`valid?''
from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/validations.rb:743:in
`save_without_transactions''
from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/transactions.rb:120:in
`save_without_validation''
from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
`transaction''
from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/transactions.rb:86:in...
2006 May 02
9
Updating only one field
At present, I use an update like this to set the user''s last login time:
authenticated_user.update_attribute(:last_login, Time.now)
However, this calls the following, updating all fields:
UPDATE users SET `last_login` = ''2006-05-02 13:27:41'', `hashed_password`
= ....
Is there any way I can tell ActionRecord to only update the one field?
I don''t really want
2007 Feb 16
6
some fun functionality for all your specs
...uot; do
specify "should have valid associations" do
@product.should_have_valid_associations
end
end
code: (thanks to Wilson/Defiler for converting to rspec)
module Spec
module Expectations
module Should
class Base
def have_valid_associations
@target.save_without_validation
@target.class.reflect_on_all_associations.each do |assoc|
lambda { @target.send(assoc.name, true) }.should_not_raise
end
self
end
end
end
end
end
second, I had a problem where I''d renamed some fields in the model and
didn...
2006 Nov 20
0
End-of-File Error occured at <except.c>:79 in xraise
...1.14.4/lib/active_record/base.rb:1718:in
`create_or_update_without_callbacks''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:253:in
`create_or_update''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-
1.14.4/lib/active_record/base.rb:1392:in `save_without_validation''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:736:in
`save_without_transactions''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-
1.14.4/lib/active_record/transactions.rb:126:in `save''
/usr/local/lib/ruby/gems/1.8/gems/active...
2006 Jul 18
1
Saving an ActiveRecord object
I get this error when I try to save an object that extends of
ActiveRecord:
NoMethodError in TeamController#add_player
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.keys
....
....
#{RAILS_ROOT}/app/models/player.rb:17:in `create_player''
#{RAILS_ROOT}/app/controllers/team_controller.rb:53:in `add_player''
And my Player model
2007 Mar 26
2
Strange Record not saved errors
...e which direction to
look.. could it be related to mysql performance errors or something?
This is the error I''m getting:
A ActiveRecord::RecordNotSaved occurred in account#signup:
ActiveRecord::RecordNotSaved
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:
1398:in `save_without_validation!''
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from...
2006 Apr 04
6
Oracle Problem. Maybe driver
...-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/active...
2006 Jul 20
1
file_column - assigning with an actual file rather than a multipart
...1.14.3/lib/active_record/callbacks.rb:330:in
`callback''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/callbacks.rb:250:in
`create_or_update''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1392:in
`save_without_validation''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/validations.rb:724:in
`save_without_transactions''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/transactions.rb:126:in
`save''
from /us...
2006 Aug 25
6
End-of-File Error occured at <except.c>:103 in xpop_context
...-1.14.4/lib/active_record/base.rb:1718:in
`create_or_update_without_callbacks''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:253:in
`create_or_update''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1392:in
`save_without_validation''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:736:in
`save_without_transactions''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/transactions.rb:126:in
`save''
/usr/local/lib/ruby/gems/1.8/gems/active...
2007 Oct 30
1
Merb - Losing connection to MySQL
...ms/activerecord-1.15.5/lib/active_record/base.rb:1792:in
`create_or_update_without_callbacks''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/callbacks.rb:242:in
`create_or_update''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/base.rb:1548:in
`save_without_validation''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/validations.rb:752:in
`save_without_transactions''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/transactions.rb:129:in
`save''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ac...
2006 Jul 14
1
error with Dates in SQL Server
...e_record/
ase.rb:1718:in `create_or_update_without_callbacks''
from ./script/../config/../vendor/rails/activerecord/lib/
active_record/
allbacks.rb:249:in `create_or_update''
from ./script/../config/../vendor/rails/activerecord/lib/
active_record/
ase.rb:1392:in `save_without_validation''
from ./script/../config/../vendor/rails/activerecord/lib/
active_record/
alidations.rb:724:in `save_without_transactions''
... 10 levels...
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `e
al''
from ./scri...
2008 Dec 20
9
Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?)
I have been working through an upgrade of my 1.2.6 application to
2.2.2.
I am almost there but I have hit a problem with ActiveRecord.
Before the upgrade, the following code was working fine.
def create_root(administrator)
root = create_root_collection(self.pingee_name,
administrator,
2007 Oct 07
1
How to store a Mechanize object in the database?
...1.15.3/lib/active_record/base.rb:1789:in
`create_or_update_without_callbacks''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:242:in
`create_or_update''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1545:in
`save_without_validation''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/validations.rb:752:in
`save_without_transactions''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in
`save''
from /var/lib/gems/1.8/gems/ac...
2006 Aug 08
1
File upload into Mysql (using lighttpd) problem
...lib/active_record/base.rb:1718:in
`create_or_update_without_callbacks''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/callbacks.rb:249:in
`create_or_update''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/base.rb:1392:in
`save_without_validation''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/validations.rb:724:in
`save_without_transactions''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/transactions.rb:126:in
`save''
/usr/local/lib/ruby/gems/1.8...
2006 Apr 03
2
no marshal_dump is defined for class Proc
...iverecord-1.14.0/lib/active_record/callbacks.rb:330:in
`callback''
D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:248:in
`create_or_update''
D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1388:in
`save_without_validation''
D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/validations.rb:724:in
`save_without_transactions''
D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
`save''
D:/apps/xampp/ruby/lib/rub...
2009 Jun 04
1
wrong number of arguments (1 for 0)
...ms/activerecord-2.3.2/lib/active_record/
base.rb:2868:in `create_or_update_without_callbacks''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
callbacks.rb:250:in `create_or_update''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:2556:in `save_without_validation!''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
validations.rb:1019:in `save_without_dirty!''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
dirty.rb:87:in `save_without_transactions!''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3...
2005 Aug 02
0
Debugging woes
...cord-1.11.0/lib/active_record/base.rb:1132:in `create_or_update_without_callbacks''
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/callbacks.rb:249:in `create_or_update''
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/base.rb:958:in `save_without_validation''
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/validations.rb:650:in `save_without_transactions''
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/transactions.rb:128:in `save''
from /usr/lib/ruby/gems/1.8/gems/activere...
2006 Sep 18
5
Undefined method "updated?"
...ems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:341:in
`callback''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:252:in
`create_or_update''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1392:in
`save_without_validation''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:736:in
`save_without_transactions''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/transactions.rb:126:in
`save''
/usr/local/lib/ruby/gems/1.8/gems/activere...
2007 Jan 10
3
ActiveRecord Error?
...by/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:341:in
`callback''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:254:in
`create_or_update''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1392:in
`save_without_validation''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:736:in
`save_without_transactions''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/transactions.rb:126:in
`save''
/usr/lib/ruby/gems/1.8/gems/activerecord-1...
2007 Jul 24
1
Why can''t find index file sometimes?
...{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1789:in
`create_or_update_without_callbacks''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:242:in
`create_or_update''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1545:in
`save_without_validation''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/validations.rb:752:in
`save_without_transactions''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in
`save''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_a...