Ruby on rails 3.2 如何在Rails 3.2和Ruby 1.9.3上使用Vestal版本绕过NoMethodError?

Ruby on rails 3.2 如何在Rails 3.2和Ruby 1.9.3上使用Vestal版本绕过NoMethodError?,ruby-on-rails-3.2,vestal-versions,Ruby On Rails 3.2,Vestal Versions,好的-我想我已经搜索了所有地方,我认为这应该是一个重复的问题,但是在查看和尝试了多个东西之后,仍然没有一个基本的vestal_版本(1.2.2)。我在开发的早期,所以我对其他在Rails3.2和Ruby1.9.3上实际工作的版本控制解决方案持开放态度 回购协议的所有者正在寻找另一个冠军(也许这应该告诉我一些事情,呵呵),所以如果没有一些TLC,这可能是不可能的,但如果有人已经弄明白了,我将不胜感激 谢谢你的时间 我的情况如下: 最大Os X 10.8.2 mac端口:ruby 1.9.3p19

好的-我想我已经搜索了所有地方,我认为这应该是一个重复的问题,但是在查看和尝试了多个东西之后,仍然没有一个基本的vestal_版本(1.2.2)。我在开发的早期,所以我对其他在Rails3.2和Ruby1.9.3上实际工作的版本控制解决方案持开放态度

回购协议的所有者正在寻找另一个冠军(也许这应该告诉我一些事情,呵呵),所以如果没有一些TLC,这可能是不可能的,但如果有人已经弄明白了,我将不胜感激

谢谢你的时间

我的情况如下:

  • 最大Os X 10.8.2
  • mac端口:ruby 1.9.3p194(2012-04-20修订版35410)[x86_64-darwin11]
  • 轨道3.2.8
在我的档案里

stuff...
gem 'mysql2'
gem 'vestal_versions', :git => 'git://github.com/laserlemon/vestal_versions.git'
more stuff...
bundle告诉我我有: -使用来自的vestal_版本(1.2.2)git://github.com/laserlemon/vestal_versions.git (船长)

我的模型:

class StoryPage < ActiveRecord::Base
  versioned

  belongs_to      :story

  attr_accessible :page_num, :title, :story_version, has_been_deleted, :content
end
错误输出包含:

> DEPRECATION WARNING: The InstanceMethods module inside
> ActiveSupport::Concern will be no longer included automatically.
> Please define instance methods directly in VestalVersions::Changes
> instead. (called from include at
> /Users/leo_odonnell/.bundler/ruby/1.9.1/vestal_versions-6273df533f85/lib/vestal_versions.rb:109)
>     # and more like that, then
>     NoMethodError (undefined method `class_inheritable_accessor' for #<Class:0x007fa59e5c9400>):
>       app/models/story_page.rb:2:in `<class:StoryPage>'
>       app/models/story_page.rb:1:in `<top (required)>'
>       app/controllers/stories_controller.rb:22:in `create'
>弃用警告:内部的InstanceMethods模块
>ActiveSupport::关注事项将不再自动包含。
>请直接在VestalVersions::Changes中定义实例方法
>相反。(从包含处调用)
>/Users/leo_odonell/.bundler/ruby/1.9.1/vestal_versions-6273df533f85/lib/vestal_versions.rb:109)
>#那就更像这样了
>NoMethodError(用于#的未定义方法'class_inheritable_accessor'):
>app/models/story_page.rb:2:in`'
>app/models/story_page.rb:1:in`'
>app/controllers/stories\u controller.rb:22:in'create'

尝试:捆绑更新rake

此外,如果您正在获取MassaSignmentSecurity::Error,请尝试以下修复:

> DEPRECATION WARNING: The InstanceMethods module inside
> ActiveSupport::Concern will be no longer included automatically.
> Please define instance methods directly in VestalVersions::Changes
> instead. (called from include at
> /Users/leo_odonnell/.bundler/ruby/1.9.1/vestal_versions-6273df533f85/lib/vestal_versions.rb:109)
>     # and more like that, then
>     NoMethodError (undefined method `class_inheritable_accessor' for #<Class:0x007fa59e5c9400>):
>       app/models/story_page.rb:2:in `<class:StoryPage>'
>       app/models/story_page.rb:1:in `<top (required)>'
>       app/controllers/stories_controller.rb:22:in `create'