开发者

Real location of jquery in rails

One day I've got jquery.js file corrupted (maybe because of my IDE, i don't really know), it has arbitrary number in the beginning. I can see this in the browser:

3/*!
 * jQuery JavaScript Library v1.6.2
 * http://jquery.com/
 *
 *

I'm under Rails 3.1, using Pipeline by default. So I've checked the places which Pipeline can retrieve jquery. The first was vendor/assets/javascripts project's directory, it was empty. Then I went to location where gem jquery-rails is located /home/megas/.rvm/gems/ruby-1.9.2-p290@rails31/gems/jquery-开发者_开发百科rails-1.0.14/vendor/assets/javascripts/ but all files there are OK.

Where I can find real jquery file?


Have you checked /usr/share/javascript ?


I didn't find what was the problem, so I had to recreate project and this bug went way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜