我使用Rails 3.1,試圖以我的觀點一個鏈接到的圖像'/應用程序/資產/圖像'。圖像資產的錯誤做這個導軌3.1
該視圖將圖像呈現爲'/assets/logo.png',但圖像已損壞,在新窗口中打開時出現此錯誤: 「無路線匹配[GET]」/assets/logo.png 「」
對我有何建議?
我在開發模式下運行,具有以下配置:
config.cache_classes = false
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_mailer.raise_delivery_errors = false
config.active_support.deprecation = :log
config.action_dispatch.best_standards_support = :builtin
config.assets.compress = false
config.assets.debug = true
我得到 - 沒有路由匹配[GET]「/assets/logo.png」 – gibo 2011-12-24 13:27:54
排序它,該文件有錯誤的權限 – gibo 2011-12-24 14:04:48
酷:)它必須是這樣的東西,它沒有意義,圖像不可訪問在這個網址。 – Robin 2011-12-24 14:16:27