Support Requests: Browse | Submit New | Admin

[#11760] version= method not found

Date:
2007-06-22 03:50
Priority:
3
Submitted By:
Laran Evans (laran)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
version= method not found

Detailed description
You can see from the stack trace below that the plugin is installed. My model is called Topic. It is defined somewhat
like this:

class Topic < ActiveRecord::Base
  acts_as_versioned
end

My topics table does have an integer version column. My topic_versions table has a version number column as well.

The site worked fine a few days ago. The only thing I can think of that changed is that I finally added the foreign_key
into the topic_versions table to point back to the topics table.

It seems like the mixing in of the version= method isn't working properly. How might I go about debugging this? Is this
a known bug? Have I screwed up some configuration or something in my model?

Thanks. Great plugin.

C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing'
#{RAILS_ROOT}/vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:250:in `save_version_on_create'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:333:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:333:in `callback'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:330:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:330:in `callback'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:255: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/active_record/base.rb:1789:in
`create_or_update_without_callbacks'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:242:in `create_or_update'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1545:in `save_without_validation'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/validations.rb:752:in `save_without_transactions'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in `save'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb
:59:in `transaction'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:95:in `transaction'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:121:in `transaction'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in `save'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:451:in `create'
#{RAILS_ROOT}/app/controllers/wiki_controller.rb:124:in `create'
-e:4:in `load'
-e:4

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item