Forum: Ruby on Rails jquery error in production precompiled

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D2M (Guest)
on 2012-11-02 12:49
(Received via mailing list)
In my rails project, for production precompile
I do : rake assets:precompile RAILS_ENV=production

But it not work for jquery.
In my firegub console, I got the error
ReferenceError: JQuery is not defined

at production.rb

# Disable Rails's static asset server (Apache or nginx will already do
  config.serve_static_assets = true

  # Compress JavaScripts and CSS
  config.assets.compress = true
  config.assets.precompile = ['*.js', '*.css']

at application.js

// = require jquery_ujs
// = require jquery
// = require jquery.jcarousel.min
// = requier_tree .

how I do for that

Nikhil Dashore (Guest)
on 2012-11-02 14:38
(Received via mailing list)
Have you included 'jquery_rails' in your gem file?

D2M (Guest)
on 2012-11-03 04:52
(Received via mailing list)
yes, I have.
Jquery error : it is work in front end ( user view ).
admin view (back end - setting ). some jquery work. sometime jquery not
This topic is locked and can not be replied to.