我已經安裝了Masonry gem都用我的Gemfile:軌道4:砌體寶石
gem 'masonry-rails'
...以及從控制檯:
$ gem install masonry-rails
Successfully installed masonry-rails-0.2.4
Parsing documentation for masonry-rails-0.2.4
Installing ri documentation for masonry-rails-0.2.4
Done installing documentation for masonry-rails after 1 seconds
1 gem installed
我重新啓動我的應用程序,但是當我打電話:
//= require masonry/masonry
在我的application.js
,我看到的錯誤:
couldn't find file 'masonry/masonry' with type 'application/javascript'
......爲什麼會出現這種情況的任何想法?我已經成功地使用了CDN,但想要切換到寶石。我也試過要求masonry
而不是masonry/masonry
,但沒有效果。