저는 Rails에 처음 입하했습니다. 여기에 설명 된 바와 같이 나는 Zurb 기반 프론트 엔드 프레임 워크를 설치 : http://www.zurb.com/article/814/yetify-your-rails-new-foundation-gem-and-Rails - 앱 디렉토리 외부의 자산에 연결하는 방법
나는 응용 프로그램/자산/스타일 시트를 엽니 다/application.css 나는이 자동 생성 된 코드를 찾을 때 : 그러나
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require foundation
*= require_tree .
*/
,이 줄을 내보기
<%= stylesheet_link_tag "application" %>
내가 만든 파일 zurb_foundation/응용 프로그램/자산/스타일/재단/index.css로드되지 않습니다
couldn't find file 'foundation'
(in /Users/migu/railsapps/maneki1/app/assets/stylesheets/application.css:6)
을
파일과 zurb_foundation/app/assets/stylesheets/foundation /에 넣은 모든 CSS 파일을 어떻게로드 할 수 있습니까?
*= require_directory ./foundation
을 아니면 foundation-rails
보석을 사용할 수 있습니다 덕분에 ...
https://github.com/zurb/foundation-rails/blob/master/README.markdown 지침을 따르려고했는데 작동하지 않았습니다. Rails에 완전히 익숙한 저와 관련이 있다고 생각합니다. 이 디렉토리 .rvm/gems/ruby-1.9.2-p290/gems/zurb-foundation-2.1.0으로 이동할 수는 있지만 여전히 작동하지 않습니다. – migu