简体   繁体   English

Rails 3.1的新资产路径问题

[英]New asset path issue with rails 3.1

I'm trying to add a new asset path to the pipeline... I've created a directory "fonts" inside /app/assets/ and wrote this line: 我正在尝试向管道添加新的资产路径...我在/ app / assets /中创建了一个目录“ fonts”,并编写了这一行:

config.assets.paths << "#{Rails.root}/app/assets/fonts"

inside my application.rb config file. 在我的application.rb配置文件中。 But I get a 404 error browsing this: localhost:3000/assets/fonts/ 但浏览此文件时出现404错误:localhost:3000 / assets / fonts /

Please help me. 请帮我。

仅使用localhost:3000/fonts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM