javascript - Why is jquery-rails not loading? -



javascript - Why is jquery-rails not loading? -

i have tried manually adding jquery in rails app (3.2) , works.

application.html.erb

<script src="/js/jquery-1.9.1.js"></script> <script src="/js/jquery-ui-1.10.3.custom.js"></script>

now tried replace using rails-jquery gem, css seems load, however, js not work. missing? how debug this? gem file (followed bundle install)

gem 'jquery-rails'

application.html.erb

<%= javascript_include_tag "application" %>

application.js

//= require bootstrap //= require jquery //= require jquery_ujs //= require jquery-ui

my gemfile.lock looks this.

specs: jquery-rails (2.0.2) railties (>= 3.2.0, < 5.0) thor (~> 0.14) jquery-ui-rails (4.0.5) railties (>= 3.1.0)

as per chat give-and-take problem jquery installed of different version plugin using , hence giving errors.

you can install particular version of jquery-rails by

gem 'jquery-rails', '~> version'

javascript jquery ruby-on-rails ruby-on-rails-3

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -