On Tuesday, June 26, 2012 9:02:21 PM UTC-7, Vell wrote: > > > > On Tuesday, June 26, 2012 11:22:56 PM UTC-4, Vell wrote: >> >> >> >> On Tuesday, June 26, 2012 11:14:14 PM UTC-4, Vell wrote: >>> >>> Hello all, >>> >>> I seem to be running into an issue where jquery seems to be working fine >>> in my development environment but when I load it to my production >>> environment it does not work. There are some menus that I am trying to hide >>> when the web page loads but when they page loads they are there in plain >>> site. When I launch firebug and run the same code in console it works >>> without any issue so I have wonder if there is a different way I need to >>> precompile the assets to get everything to load? >>> >>> UPDATE: interestingly enough I ran `rake assets:precompile` and I didn't >> get any errors prior to submitting this topic. I decided to run rake >> `assets:precompile:all` and I hit an error: >> >> rake aborted! >> couldn't find file 'jquery' >> >> To make sure I ran rake `assets:precompile` again to see if I wouldn't >> get any errors and I again hit another error but it is different from the >> error I got above: >> >> rake aborted! >> Invalid CSS after " background:url(": expected expression (e.g. fr, >> 2n+1), was "<%= asset_path ..." >> >> I though the jquery-rails gem was supposed to load jquery for me. Is it >> that I don't need to include jquery and jquery_ujs in my application.js >> file? >> >> UPDATE 2: Changing my css file to css.erb fixed my css error but I am now > back to my jquery error. I have confirmed that when I run `rake > assets:precompile` I do not get an error about jquery but when I run `rake > assets:precompile:all` I get an error about jquery. What would make it so > that one complains the other does not? and also do I need to include jquery > and jquery_ujs if I am using the jquery-rails gem? >
Val, Your Gemfile looks good to me and so does your application.js. Are you using bundle exec rake to precompile? Can you post the error message you get about jquery? -- Ylan. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/BvL8q1QzDggJ. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.