2013-07-23 2 views
2

Итак, я просто клонировал репозиторий, и все работает нормально. База данных хорошо переносилась, и пакет тоже хорошо работал. Но я не могу получить таблицы стилей в app/assets/stylesheets/ для обслуживания в разработке, а также с javascript. Сайт использует бутстрап, поэтому это довольно важно. Я сейчас работаю в режиме разработки, и я вижу, что приложение application.css/js подается в браузер, просматривая исходный код страницы, но никаких других файлов нет.Rails: require_tree не обслуживает мои таблицы стилей и javascripts

Ниже приводится содержание обоих файлов приложения:

/* 
* This is a manifest file that'll be compiled into application.css, which will include all the files 
* listed below. 
* 
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, 
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. 
* 
* 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_tree . 
*/ 

body { 
    padding-top: 40px; 
} 

.alert { 
    margin-top: 10px; 
} 

// 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_tree . 

ответ

1

Эта проблема была решена путем натыкаясь версии рельсов в Gemfile к 3.2.13. Не знаю, почему это было так, и почему это не сработало клонированным. Однако это исправило это.

Смежные вопросы