rails / jquery-rails

A gem to automate using jQuery with Rails
MIT License
950 stars 407 forks source link

Couldn't find file 'jquery_ujs' on migration #177

Closed sime closed 9 years ago

sime commented 9 years ago

Hi,

I can't quite put my finger on what is going on here, but I'm running Rails 4.2.0.beta4 and just updated to jquery-rails 4.0.0.

couldn't find file 'jquery_ujs' (in .../app/assets/javascripts/application.js:14)

Oddly I get a similar error when I try to include 'jquery2'. If I view source and visit the jquery URL directly it presents me jQuery version 2.1.1, but 'jquery.js' in the gem is 1.11.1.

I then cleaned the jquery-rails gem: sudo gem clean jquery-rails, and no difference.

I thought it might be something to do with rails-assets but removing that made no difference.

GIT
  remote: git://github.com/sime/pamfaxr.git
  revision: 4f1d44606eeb178c4139bfbb70b4e36ca56cd0a0
  tag: v0.2.4
  specs:
    pamfaxr (0.0.3)
      json
      mime-types

GEM
  remote: https://rubygems.org/
  remote: https://rails-assets.org/
  specs:
    Ascii85 (1.0.2)
    actionmailer (4.2.0.beta4)
      actionpack (= 4.2.0.beta4)
      actionview (= 4.2.0.beta4)
      activejob (= 4.2.0.beta4)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 1.0, >= 1.0.4)
    actionpack (4.2.0.beta4)
      actionview (= 4.2.0.beta4)
      activesupport (= 4.2.0.beta4)
      rack (~> 1.6.0.beta)
      rack-test (~> 0.6.2)
      rails-dom-testing (~> 1.0, >= 1.0.4)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    actionview (4.2.0.beta4)
      activesupport (= 4.2.0.beta4)
      builder (~> 3.1)
      erubis (~> 2.7.0)
      rails-dom-testing (~> 1.0, >= 1.0.4)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    activejob (4.2.0.beta4)
      activesupport (= 4.2.0.beta4)
      globalid (>= 0.3.0)
    activemodel (4.2.0.beta4)
      activesupport (= 4.2.0.beta4)
      builder (~> 3.1)
    activerecord (4.2.0.beta4)
      activemodel (= 4.2.0.beta4)
      activesupport (= 4.2.0.beta4)
      arel (>= 6.0.0.beta2, < 6.1)
    activesupport (4.2.0.beta4)
      i18n (>= 0.7.0.beta1, < 0.8)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.1)
      tzinfo (~> 1.1)
    addressable (2.3.6)
    afm (0.2.2)
    arel (6.0.0.beta2)
    better_errors (2.0.0)
      coderay (>= 1.0.0)
      erubis (>= 2.6.6)
      rack (>= 0.9.0)
    binding_of_caller (0.7.2)
      debug_inspector (>= 0.0.1)
    bitcoin-ruby (0.0.6)
    blockchain-info-exchange-rates (0.1.7)
      json (>= 1.7)
      monetize (~> 1.0.0)
    blockchain-info-ruby (1.1.0)
    builder (3.2.2)
    byebug (3.5.1)
      columnize (~> 0.8)
      debugger-linecache (~> 1.2)
      slop (~> 3.6)
    capistrano (3.3.3)
      capistrano-stats (~> 1.0.3)
      i18n
      rake (>= 10.0.0)
      sshkit (~> 1.3)
    capistrano-bundler (1.1.3)
      capistrano (~> 3.1)
      sshkit (~> 1.2)
    capistrano-rails (1.1.2)
      capistrano (~> 3.1)
      capistrano-bundler (~> 1.1)
    capistrano-rbenv (2.0.2)
      capistrano (~> 3.1)
      sshkit (~> 1.3)
    capistrano-rbenv-install (1.2.0)
      capistrano (>= 3.0)
      capistrano-rbenv (>= 2.0)
    capistrano-sidekiq (0.4.0)
      capistrano
      sidekiq
    capistrano-stats (1.0.3)
    capistrano3-puma (0.8.3)
      capistrano (~> 3.0)
      puma (>= 2.6)
    capybara (2.4.4)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    carrierwave (0.10.0)
      activemodel (>= 3.2.0)
      activesupport (>= 3.2.0)
      json (>= 1.7)
      mime-types (>= 1.16)
    celluloid (0.16.0)
      timers (~> 4.0.0)
    chain-bitcoin-ruby (0.0.1)
    chain-ruby (2.0.1)
      chain-bitcoin-ruby (= 0.0.1)
    chunky_png (1.3.3)
    coderay (1.1.0)
    coffee-rails (4.0.1)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.3.0)
      coffee-script-source
      execjs
    coffee-script-source (1.8.0)
    colorize (0.7.3)
    columnize (0.8.9)
    connection_pool (2.1.0)
    countries (0.9.3)
      currencies (~> 0.4.2)
    crack (0.4.2)
      safe_yaml (~> 1.0.0)
    currencies (0.4.2)
    debug_inspector (0.0.2)
    debugger-linecache (1.2.0)
    diff-lcs (1.2.5)
    docile (1.1.5)
    dotenv (1.0.2)
    dotenv-rails (1.0.2)
      dotenv (= 1.0.2)
    erubis (2.7.0)
    execjs (2.2.2)
    factory_girl (4.5.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.5.0)
      factory_girl (~> 4.5.0)
      railties (>= 3.0.0)
    faker (1.4.3)
      i18n (~> 0.5)
    fastclick-rails (1.0.1)
    figaro (1.0.0)
      thor (~> 0.14)
    foundation-rails (5.4.5.0)
      railties (>= 3.1.0)
      sass (>= 3.2.0)
    geoip (1.4.0)
    globalid (0.3.0)
      activesupport (>= 4.1.0)
    google-analytics-turbolinks (0.0.4)
    hashery (2.1.1)
    hike (1.2.3)
    hitimes (1.2.2)
    http_logger (0.5.1)
    i18n (0.7.0.beta1)
    jbuilder (2.2.5)
      activesupport (>= 3.0.0, < 5)
      multi_json (~> 1.2)
    jquery-rails (4.0.0)
      rails-dom-testing (~> 1.0)
      railties (>= 4.2.0.beta, < 5.0)
      thor (>= 0.14, < 2.0)
    json (1.8.1)
    loofah (2.0.1)
      nokogiri (>= 1.5.9)
    mail (2.6.3)
      mime-types (>= 1.16, < 3)
    mime-types (2.4.3)
    mini_portile (0.6.1)
    minitest (5.4.3)
    monetize (1.0.0)
      money (~> 6.4.0)
    money (6.4.0)
      i18n (>= 0.6.4, <= 0.7.0.beta1)
    money-rails (1.0.0)
      activesupport (>= 3.0)
      monetize (~> 1.0.0)
      money (~> 6.4.0)
      railties (>= 3.0)
    multi_json (1.10.1)
    mysql2 (0.3.17)
    net-scp (1.2.1)
      net-ssh (>= 2.6.5)
    net-ssh (2.9.1)
    nokogiri (1.6.5)
      mini_portile (~> 0.6.0)
    pdf-reader (1.3.3)
      Ascii85 (~> 1.0.0)
      afm (~> 0.2.0)
      hashery (~> 2.0)
      ruby-rc4
      ttfunk
    phonelib (0.3.5)
    phony (2.8.3)
    phony_rails (0.8.1)
      activesupport (>= 3.0)
      countries (>= 0.8.2)
      phony (~> 2.8.3)
    puma (2.10.2)
      rack (>= 1.1, < 2.0)
    quiet_assets (1.0.3)
      railties (>= 3.1, < 5.0)
    rack (1.6.0.beta2)
    rack-test (0.6.2)
      rack (>= 1.0)
    rack-tracker (0.3.0)
      activesupport (>= 3.0)
      rack (>= 1.4.0)
      tilt (~> 1.4.1)
    rails (4.2.0.beta4)
      actionmailer (= 4.2.0.beta4)
      actionpack (= 4.2.0.beta4)
      actionview (= 4.2.0.beta4)
      activejob (= 4.2.0.beta4)
      activemodel (= 4.2.0.beta4)
      activerecord (= 4.2.0.beta4)
      activesupport (= 4.2.0.beta4)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.2.0.beta4)
      sprockets-rails (~> 3.0.0.beta1)
    rails-assets-intl-tel-input (3.7.1)
      rails-assets-jquery (>= 1.7)
    rails-assets-jquery (2.1.1)
    rails-deprecated_sanitizer (1.0.3)
      activesupport (>= 4.2.0.alpha)
    rails-dom-testing (1.0.5)
      activesupport (>= 4.2.0.beta, < 5.0)
      nokogiri (~> 1.6.0)
      rails-deprecated_sanitizer (>= 1.0.1)
    rails-html-sanitizer (1.0.1)
      loofah (~> 2.0)
    railties (4.2.0.beta4)
      actionpack (= 4.2.0.beta4)
      activesupport (= 4.2.0.beta4)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.4.0)
    rdoc (4.1.2)
      json (~> 1.4)
    redis (3.1.0)
    redis-namespace (1.5.1)
      redis (~> 3.0, >= 3.0.4)
    responders (2.0.2)
      railties (>= 4.2.0.alpha, < 5)
    rqrcode-with-patches (0.5.4)
      chunky_png
    rspec-core (3.1.7)
      rspec-support (~> 3.1.0)
    rspec-expectations (3.1.2)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.1.0)
    rspec-mocks (3.1.3)
      rspec-support (~> 3.1.0)
    rspec-rails (3.1.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 3.1.0)
      rspec-expectations (~> 3.1.0)
      rspec-mocks (~> 3.1.0)
      rspec-support (~> 3.1.0)
    rspec-support (3.1.2)
    ruby-rc4 (0.1.5)
    safe_yaml (1.0.4)
    sass (3.4.9)
    sass-rails (5.0.0.beta1)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.2)
      sprockets (~> 2.12)
      sprockets-rails (>= 2.0, < 4.0)
    sdoc (0.4.1)
      json (~> 1.7, >= 1.7.7)
      rdoc (~> 4.0)
    shoulda-matchers (2.7.0)
      activesupport (>= 3.0.0)
    sidekiq (3.3.0)
      celluloid (>= 0.16.0)
      connection_pool (>= 2.0.0)
      json
      redis (>= 3.0.6)
      redis-namespace (>= 1.3.1)
    simple_form (3.1.0)
      actionpack (~> 4.0)
      activemodel (~> 4.0)
    simplecov (0.9.1)
      docile (~> 1.1.0)
      multi_json (~> 1.0)
      simplecov-html (~> 0.8.0)
    simplecov-html (0.8.0)
    slim (2.1.0)
      temple (~> 0.6.9)
      tilt (>= 1.3.3, < 2.1)
    slim-rails (2.1.5)
      actionpack (>= 3.0, < 4.2)
      activesupport (>= 3.0, < 4.2)
      railties (>= 3.0, < 4.2)
      slim (~> 2.0)
    slop (3.6.0)
    spring (1.2.0)
    sprockets (2.12.3)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (3.0.0.beta1)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (~> 2.8)
    sshkit (1.5.1)
      colorize
      net-scp (>= 1.1.2)
      net-ssh (>= 2.8.0)
    temple (0.6.10)
    test_after_commit (0.4.0)
      activerecord (>= 3.2)
    thor (0.19.1)
    thread_safe (0.3.4)
    tilt (1.4.1)
    timers (4.0.1)
      hitimes
    ttfunk (1.4.0)
    turbolinks (2.5.2)
      coffee-rails
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uglifier (2.5.3)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    vcr (2.9.3)
    web-console (2.0.0)
      activemodel (~> 4.0)
      binding_of_caller (>= 0.7.2)
      railties (~> 4.0)
      sprockets-rails (>= 2.0, < 4.0)
    webmock (1.20.4)
      addressable (>= 2.3.6)
      crack (>= 0.3.2)
    xpath (2.0.0)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  addressable
  better_errors
  bitcoin-ruby
  blockchain-info-exchange-rates (~> 0.1.6)
  blockchain-info-ruby
  byebug
  capistrano (~> 3.1)
  capistrano-rails (~> 1.1)
  capistrano-rbenv (~> 2.0)
  capistrano-rbenv-install
  capistrano-sidekiq
  capistrano3-puma
  capybara
  carrierwave
  chain-ruby
  coffee-rails (~> 4.0.0)
  dotenv-rails
  factory_girl_rails
  faker
  fastclick-rails
  figaro
  foundation-rails
  geoip
  google-analytics-turbolinks
  http_logger
  jbuilder (~> 2.0)
  jquery-rails
  money-rails
  mysql2
  pamfaxr!
  pdf-reader
  phonelib
  phony_rails
  puma
  quiet_assets
  rack-tracker
  rails (~> 4.2.0.beta)
  rails-assets-intl-tel-input
  responders (~> 2.0.0)
  rqrcode-with-patches
  rspec-rails
  sass-rails (~> 5.0.0.beta)
  sdoc (~> 0.4.0)
  shoulda-matchers
  sidekiq
  simple_form
  simplecov
  slim-rails
  spring
  test_after_commit
  turbolinks
  uglifier (>= 1.3.0)
  vcr
  web-console (~> 2.0.0.beta)
  webmock
rafaelfranca commented 9 years ago

I could not replicate in a new application. It may be something in your setup.

smidwap commented 9 years ago

@sime you might my answer at https://github.com/rails/jquery-rails/issues/180 helpful

sime commented 9 years ago

Sounds similar to how I made the problem go away.

I switch from system wide gems to using rbenv. On 14 Dec 2014 03:50, "Matt De Leon" notifications@github.com wrote:

@sime https://github.com/sime you might my answer at #180 https://github.com/rails/jquery-rails/issues/180 helpful

— Reply to this email directly or view it on GitHub https://github.com/rails/jquery-rails/issues/177#issuecomment-66900621.