2012-03-28 2 views
4

나는 Ryan의 Railscast 328329과 함께 따라 왔습니다. bootstrap.js에서 오는 그부트 스트랩에서 Sass Javascript 오류로 전환

Uncaught TypeError: Object [object Object] has no method 'popover' 

: 나는 지금이 오류를 받고 있어요 329에서하는 부트 스트랩 - 말대꾸를 전환 할 때까지

상황이 좋은 일했다. bootstrap.js는 버전 1.7.1 인 (jquery.js 후로드지고

application.js 파일 :.?

// This is a manifest file that'll be compiled into application.js, which will include all the files 
// listed below. 
// 
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, 
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. 
// 
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the 
// the compiled file. 
// 
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD 
// GO AFTER THE REQUIRES BELOW. 
// 
//= require jquery 
//= require jquery_ujs 
//= require bootstrap 
//= require_tree . 

내가 필요로 할 몇 가지 다른 파일이

감사

답변

9

당신은 할 수 있습니다 귀하의 자바 스크립트 폴더에 bootstrap이라는 파일이 있습니다. 스프로킷은 보석 파일에있는 파일 대신 해당 파일을 찾습니다.

+0

bootstrap-custom.js로 이름을 변경했습니다. 아직 오류가 발생했습니다. 잡히지 않은 TypeError : Object [object Object]에 'on'메서드가 없습니다. –

+0

특히 bootstrap.js.coffee는 bootstrapify.js.coffee 또는 뭔가라고해야합니다. 비슷한. – wesgarrison

관련 문제