Paperclip routing error

て烟熏妆下的殇ゞ 提交于 2019-12-11 05:39:54

问题


After I register a user, the request goes through and says that the registration was successful, but instead of the resized image appearing, the file name is the only thing that appears. Here is my error message:

Started GET "/system/photos/1/small/Picture%202.png?1312915420" for 127.0.0.1 at Tue Aug 09    16:14:01 -0400 2011

ActionController::RoutingError (No route matches "/system/photos/1/small/Picture%202.png"):

回答1:


Maybe you need to change this line in config/environments/production.rb

config.serve_static_assets = false  #-> true


来源:https://stackoverflow.com/questions/7002370/paperclip-routing-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!