rails 3.1 ActionController :: RoutingError(没有与[GET]“ /assets/rails.png”匹配的路由): [英] rails 3.1 ActionController::RoutingError (No route matches [GET] "/assets/rails.png"):

查看:107
本文介绍了rails 3.1 ActionController :: RoutingError(没有与[GET]“ /assets/rails.png”匹配的路由):的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的标准Rails应用出现问题,显示rails.png

Standard new rails app has issue showing the rails.png

ActionController::RoutingError (No route matches [GET] "/assets/rails.png"):

我尝试将.png文件移动到各个位置资产和资产/图片,以及旧地方公共或公共/图片,并更改页面,但没有任何帮助。如果您已查看并解决此问题,请回答。我自己尝试了大约20种不同的组合。

I have tried moving the .png file around to various places in assets and assets/images and also the older place 'public' or 'public/images' and changing the page but nothing has helped. Please answer if you have seen and resolved this. I have tried about 20 different combo's myself.

版本:
'rails','3.1.0.rc4'

Version: 'rails', '3.1.0.rc4'

推荐答案

它必须是rc4问题,因为最终版本没有此问题。

It must have been an rc4 issue as the final release didn't have this issue.

11/27/11-我现在想知道这是否仅是由于Rails 3.1中引入了资产管道,需要 rake asset:precompile 命令(将图像,css和js从 应用/资产 编译并复制到 public /

如果有人认为是这种情况,请添加评论!

这篇关于rails 3.1 ActionController :: RoutingError(没有与[GET]“ /assets/rails.png”匹配的路由):的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆