1

平台:Fedora 16

导轨 3

形式主义 2

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

在将 Gemfile 中的 Gem 包含为

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 与 eruby。

4

0 回答 0