user6447029
user6447029

Reputation:

How do i figure out the version of JQuery UI from version of jquery-ui-rails gem?

I’m using Rails 4.2.7. In my Gemfile, I have

gem 'rails', '~> 4.2.7'
…
gem 'jquery-ui-rails'

How do I figure out what version of JQuery UI I’m using?

Upvotes: 2

Views: 2268

Answers (3)

ABN
ABN

Reputation: 1162

  1. Use bundle show to know the version of jquery gem -

    bundle show jquery
    

    It will list something like -

    1 : jquery-rails
    2 : jquery-ui-rails
    3 : rails-jquery-autocomplete
    0 : - exit -
    
  2. Select the appropriate option. In my system on selection of 2(jquery-ui-rails) it displayed -

    .../jquery-ui-rails-6.0.1
    
  3. Check the gem to jquery version mapping @ https://github.com/jquery-ui-rails/jquery-ui-rails/blob/master/VERSIONS.md . In my case it was

    Gem      jQuery UI
    6.0.1    1.12.1
    

Note: I have combined @Hans Findel and @MarsAtomic answer.

Upvotes: 0

Hans Findel
Hans Findel

Reputation: 136

bundle show jquery-ui-rails

This command will show you which version of that gem is being used in your project. You can also inspect your Gemfile.lock file or type

bundle show

to display all the gems being used.

To see the version of the jquery-ui plugin being used by any website, you can open the console tab in the developers tools of your browser and then type:

$.ui

Upvotes: 2

MarsAtomic
MarsAtomic

Reputation: 10696

You look in the file VERSIONS.md, in which you can see the following (top five lines):

5.0.5   1.11.4
5.0.4   1.11.3
5.0.3   1.11.2
5.0.2   1.11.2
5.0.1   1.11.1

From the JQuery UI Rails README file:

See VERSIONS.md to see which versions of jquery-ui-rails bundle which versions of jQuery UI.

Upvotes: 1

Related Questions