jquery_datepicker icon indicating copy to clipboard operation
jquery_datepicker copied to clipboard

Rails 4 compatibility

Open hale opened this issue 11 years ago • 2 comments

I'm not too sure how to do this, so would gladly welcome some help :)

hale avatar Jun 29 '13 11:06 hale

I'm also interested in making it compatible with Rails 4. In this very case, reason why it fails to build on Travis CI is because you didn't update Gemfile. For some reason ( at least in my case with current Gemfile) it was like this:

    $: bundle exec rails --version
    Rails 3.2.13

After forcing Rails to be version 4.0.0 in Gemfile it was possible to see that Rails 4 was installed correctly.

    -  gem 'rails'
    +  gem 'rails', '= 4.0.0'

It is also necessary to run bundle update after changing Gemfile.

Making sure, that actually Rails 4 is used

    $: bundle exec rails --version
    Rails 4.0.0

From that point it was possible to run all tests and actually see how all of them fail :)

    $: bundle exec rake spec
    /usr/local/var/rbenv/versions/2.0.0-p195/bin/ruby -S rspec ./spec/jquery_datepicker_spec.rb
    FFFFFFFFFFFFFF....

    Failures:

    [...]

    Finished in 0.15486 seconds
    18 examples, 14 failures

Hope this helps.

denvazh avatar Jul 03 '13 13:07 denvazh

I'm working on a new Rails 4 app that might be able to take advantage of your gem. Is there an ETA for when this issue will be resolved?

Kevin-North avatar Jul 17 '13 22:07 Kevin-North