Displaying 17 results from an estimated 17 matches for "create_without_callbacks".
2006 Feb 20
1
create_without_callbacks
Hi all,
I don''t think I''m being stupid here, but would be glad of correction.
I''m trying to future-proof early migrations, so rather than use
AR::Base.create, I want to use AR::Callbacks.create_without_callbacks.
It looks like I should be able to, from the way it''s aliased in
activerecord/callbacks.rb. When I try to, though, I get an "undefined
method `create_without_callbacks'' for Fragment:Class" error. Is there
some good reason for this I''ve missed? Is there a...
2009 Sep 30
3
SQLite3::SQLException: id may not be null
...b/active_record/connection_adapters/sqlite_adapter.rb:154:in
`execute''
./script/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:169:in
`insert''
./script/../config/../vendor/rails/activerecord/lib/active_record/base.rb:1862:in
`create_without_callbacks''
--
Posted via http://www.ruby-forum.com/.
2012 Jan 17
3
Saving without callbacks in Rails 3
Hi all,
Saving without callbacks is not working in rails 3.1.
please tell me alternatives available......
Thanks,
Kingston
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2007 Oct 30
1
Merb - Losing connection to MySQL
...-1.15.5/lib/active_record/connection_adapters/mysql_adapter.rb:243:in
`execute''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/connection_adapters/mysql_adapter.rb:253:in
`insert''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/base.rb:1814:in
`create_without_callbacks''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/callbacks.rb:254:in
`create_without_timestamps''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/timestamp.rb:30:in
`create''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_reco...
2006 Jul 14
1
error with Dates in SQL Server
...9;'N'') (ActiveRecord::StatementInvalid)
from ./script/../config/../vendor/rails/activerecord/lib/
active_record/
onnection_adapters/sqlserver_adapter.rb:279:in `insert''
from ./script/../config/../vendor/rails/activerecord/lib/
active_record/
ase.rb:1739:in `create_without_callbacks''
from ./script/../config/../vendor/rails/activerecord/lib/
active_record/
allbacks.rb:261:in `create_without_timestamps''
from ./script/../config/../vendor/rails/activerecord/lib/
active_record/
imestamp.rb:30:in `create''
from ./script/../confi...
2007 Oct 07
1
How to store a Mechanize object in the database?
...activerecord-1.15.3/lib/active_record/base.rb:2029:in
`attributes_with_quotes''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:2128:in
`quoted_column_names''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1813:in
`create_without_callbacks''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:254:in
`create_without_timestamps''
from /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/timestamp.rb:39:in
`create''
from /var/lib/gems/1.8/gems/activerecor...
2006 Nov 04
0
ActiveRecord, insert and not auto-incremented primary keys...
...dapters/mysql_adapter.rb:184:in `execute''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/mysql_adapter.rb:194:in `insert''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1739:in `create_without_callbacks''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/callbacks.rb:261:in `create_without_timestamps''
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/timestamp.rb:30:in `create''
from /usr/local/l...
2008 Jul 27
0
dhtml_calendar Plugin and dates
...ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2574:in
`each''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2574:in
`attributes_with_quotes''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2496:in
`create_without_callbacks''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/callbacks.rb:220:in
`create_without_timestamps''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/timestamp.rb:29:in
`create''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/activ...
2007 Oct 07
10
Rails to English
...ib/active_record/
connection_adapters/mysql_adapter.rb:243:in `execute''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
connection_adapters/mysql_adapter.rb:253:in `insert''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
base.rb:1811:in `create_without_callbacks''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
callbacks.rb:254:in `create_without_timestamps''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
timestamp.rb:39:in `create''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/...
2005 Dec 16
0
ArgumentError on create
...39;'
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1626:in
`attributes_with_quotes''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1718:in
`quoted_column_names''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1448:in
`create_without_callbacks''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:261:in
`create_without_timestamps''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in
`create''
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1431:in
`c...
2006 Mar 28
4
Problem with ActiveRecord, create, save, and Oracle adapter?
...14.0/lib/active_record/connection_adapters/oracle_adapter.rb:53:in
`attributes_with_quotes''
/opt/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:2031:in
`quoted_column_names''
/opt/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1735:in
`create_without_callbacks''
/opt/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:261:in
`create_without_timestamps''
/opt/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/timestamp.rb:30:in
`create''
/opt/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_re...
2009 Nov 04
0
The error occurred while evaluating nil.prefetch_primary_key
...ating a ConnectionCost :
>> ConnectionCost.create
NoMethodError: You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.prefetch_primary_key?
from
/home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/base.rb:2721:in
`create_without_callbacks''
from
/home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/callbacks.rb:237:in
`create_without_timestamps''
from
/home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/timestamp.rb:29:in
`create''
from
/home/ma...
2006 Feb 24
3
Migrations, data loads and changes to the model
Guys,
I''ve run across an interesting scenario with my migrations, and I hope
you might share some insight.
Let''s say I have 3 migrations and two Models (Person and Car):
001_initial_schema.rb
002_data_load.rb
003_add_car_association.rb
The first creates the initial schema...the second loads default data
using model objects of Person to do so, and the third creates a new
2007 May 31
0
Rails AR/SQLServer Unit Test: [6912] failed (but getting better)
...ttributes''
./test/../lib/active_record/base.rb:1822:in `attributes''
./test/../lib/active_record/base.rb:2196:in `attributes_with_quotes''
./test/../lib/active_record/base.rb:2295:in `quoted_column_names''
./test/../lib/active_record/base.rb:1975:in `create_without_callbacks''
./test/../lib/active_record/callbacks.rb:256:in `create_without_timestamps''
./test/../lib/active_record/timestamp.rb:29:in `create''
./test/../lib/active_record/base.rb:1951:in `create_or_update_without_callbacks''
./test/../lib/active_record/callb...
2006 Aug 08
1
File upload into Mysql (using lighttpd) problem
...rd/connection_adapters/mysql_adapter.rb:185:in
`execute''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/connection_adapters/mysql_adapter.rb:195:in
`insert''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/base.rb:1739:in
`create_without_callbacks''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/callbacks.rb:261:in
`create_without_timestamps''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/timestamp.rb:30:in
`create''
/usr/local/lib/ruby/gems/1.8/gems/act...
2006 Feb 23
4
MySQL Duplicate Key Error
I am a newbie and I am running into a problem which I cant understand. I
have a table called ''privileges'' which has the following fields
CREATE TABLE `sdqualplanner`.`privileges` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(20) NOT NULL default '''',
`description` varchar(100) NOT NULL default '''',
`section_id`
2006 Jul 17
18
Inserting datetime value into SQL Server
I have a SQL Server column named StartTime of (SQL Server) type datetime
If I attempt to set the attribute using
public
def StartTime=(time)
write_attribute(:StartTime, "{ts ''1899-12-30
#{time.hour}:#{time.min}:#{time.sec}''}")
end
it''s inserting a NULL value.
Anyone else able to successfully insert a date time value into a SQL
Server table using