Я побежал rails server
и пошел http://localhost:3000
рельсы активы не компилируется
У меня есть <% = stylesheet_link_tag "приложения",: СМИ => "все" %>
в layout.html.erb
Вот application.css
/*
* 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 .
*/
не является suppsed быть скомпилированы как
<link href="/assets/twitter-bootstrap-static/bootstrap.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/twitter-bootstrap-static/fontawesome.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/bootstrap_and_overrides.css?body=1" media="all" rel="stylesheet" type="text/css" />
Что-то я не хватает? Я использую рельсы 3.2.8 У меня есть
# Enable the asset pipeline
config.assets.enabled = true
в application.rb
UPDATE
После того как я побежал RAILS_ENV=development bundle exec rake assets:precompile
Я могу смотреть скомпилированные активы
Как сменить конфигурацию, чтобы она скомпилировалась? – wwli
Как указано в этой ссылке: вы можете отключить режим отладки, обновив config/environment/development.rb, чтобы включить: config.assets.debug = false - это приведет к компиляции активов в режиме отладки. Вы также можете предварительно скомпоновать активы в любое время, как указано здесь: http://guides.rubyonrails.org/asset_pipeline.html#precompiling-assets – nachbar
в этом последнем комментарии ", что приведет к компиляции активов в режиме отладки" должен был бы читать ", что приведет к компиляции активов в режиме разработки" – nachbar