search for: field_chang

Displaying 4 results from an estimated 4 matches for "field_chang".

Did you mean: field_changed
2009 Nov 30
6
rails 2.2.3 dirty.rb field_changed? method throwing arg error on creating an obj
...h another model via has_many. I''m trying to create one of these obj''s for the first time and I keep getting an Argument Error as follows: ArgumentError (wrong number of arguments (3 for 0)): C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/ active_record/dirty.rb:135:in `field_changed?'' this happens when I try to create the obj, but it''s deep in the rails codebase and I cant figure out why it''s happening. I''ve tried both creating the object as part of the association like this: self.updates.create() and directly like this: update = Upda...
2008 Sep 07
0
Bug in ActiveRecord::Dirty (2.1)
Hey folks... I was looking at activerecord/lib/active_record/dirty.rb#field_changed? upon chasing a bug. Shouldn''t there be a similar clause for ":float" as there is for ":integer" ? Cheers, Jake -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscrib...
2010 Aug 27
0
Reserved column names in Rails 3
I''m attempting to upgrade one of my sites to Rails 3 and I''m getting the following error: field_changed? is defined by ActiveRecord The particular table it is referring to has a column named "field", and I''m assuming that the error message means that I can no longer have a column named "field". First, am I assuming correctly? Two questions: 1) I just want to upgrade...
2009 May 05
3
Oracle-JRuby error
...-adapter-0.9.1/lib/jdbc_adapter/jdbc_oracle.rb:59:in `string_to_time'' C:/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/jdbc_adapter/jdbc_oracle.rb:43:in `type_cast'' C:/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/dirty.rb:161:in `field_changed?'' C:/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/dirty.rb:135:in `write_attribute_with_dirty'' C:/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:216:in `stop_date='' C:/jruby-1.2.0/lib/ruby/gems/1.8...