Forum: Ruby on Rails jquery error in production precompiled

3f7f689503f740cb64b167339c42ff4a?d=identicon&s=25 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
this)
  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

Regards,
D2M
60bbcef1c78f046ad6ae07487da70ba5?d=identicon&s=25 Nikhil Dashore (Guest)
on 2012-11-02 14:38
(Received via mailing list)
Have you included 'jquery_rails' in your gem file?

Nikhil
3f7f689503f740cb64b167339c42ff4a?d=identicon&s=25 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
work.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.