显示错误:类DatePickerInput(TypeError)的超类不匹配

时间:2012-11-28 05:10:22

标签: ruby-on-rails-3 ruby-on-rails-3.2 formtastic

平台:Fedora 16

Rails 3

Formtastic 2

我正在尝试安装https://github.com/kristianmandrup/formtastic_datepicker-rails3x

将Gem文件包含在Gemfile中

gem 'formtastic_datepicker-rails3x', :git => 'git://github.com/kristianmandrup/formtastic_datepicker-rails3x.git'

我试过脚手架作为

rails g scaffold due_date date:date

我收到了错误

/home/sreekeshos/.bundler/ruby/1.8/formtastic_datepicker-rails3x-d66ab9db54bd/lib/formtastic/date_picker_input.rb:2: superclass mismatch for class DatePickerInput (TypeError)
    from /home/sreekeshos/.bundler/ruby/1.8/formtastic_datepicker-rails3x-d66ab9db54bd/lib/formtastic_datepicker-rails3x.rb:2:in `require'
    from /home/sreekeshos/.bundler/ruby/1.8/formtastic_datepicker-rails3x-d66ab9db54bd/lib/formtastic_datepicker-rails3x.rb:2
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `each'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler.rb:128:in `require'
    from /home/sreekeshos/Ruby Example/Form sample/form_sample/config/application.rb:7
    from /usr/lib/ruby/gems/1.8/gems/railties-3.2.8/lib/rails/commands.rb:24:in `require'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.2.8/lib/rails/commands.rb:24
    from script/rails:6:in `require'
    from script/rails:6

我搜索了其他相关问题,但他们都涉及从Ruby 2迁移到3或erb vs eruby。

0 个答案:

没有答案