我服用一個月的軌道路線和我堅持上有我的圖片不是本地出現本地主機 - 的ActionController :: RoutingError(無路由匹配[GET]「/images/medium/missing.png」):
我得到了錯誤消息:ActionController :: RoutingError(沒有路由匹配[GET]「/images/medium/missing.png」):
我有paperclip 4.2.1安裝。 Microsoft Window 8
我知道問題不在於文件夾中沒有圖像。我的圖片存儲在此文件夾中的 「Pinteresting」 app文件夾:
pinteresting /公/系統/銷/圖片/ 000/000/028
在每個 「028」 引用銷#28文件夾有三個子文件夾:(1)中,(2)原,(3)拇指
Github上鍊接:https://github.com/pfeiffer101/pinteresting/commits/master
下面是完整的消息我在服務器上看到
Started GET "/pins/27" for 127.0.0.1 at 2015-05-02 23:13:42 -0700
Processing by PinsController#show as HTML
Parameters: {"id"=>"27"}
Pin Load (1.0ms) SELECT "pins".* FROM "pins" WHERE "pins"."id" = 27 LIMIT 1
User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
Rendered pins/show.html.erb within layouts/application (9.0ms)
Rendered layouts/_header.html.erb (1.0ms)
Completed 200 OK in 280ms (Views: 274.0ms | ActiveRecord: 3.0ms)
Started GET "/images/medium/missing.png?1430525259" for 127.0.0.1 at 2015-05-02 23:13:42 -0700
ActionController::RoutingError (No route matches [GET] "/images/medium/missing.png"):
actionpack (4.1.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call'
actionpack (4.1.8) lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
railties (4.1.8) lib/rails/rack/logger.rb:38:in call_app'
railties (4.1.8) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.1.8) lib/active_support/tagged_logging.rb:68:in block in tagged'
activesupport (4.1.8) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.1.8) lib/active_support/tagged_logging.rb:68:in tagged'
railties (4.1.8) lib/rails/rack/logger.rb:20:incall'
actionpack (4.1.8) lib/action_dispatch/middleware/request_id.rb:21:in call'
rack (1.5.2) lib/rack/methodoverride.rb:21:incall'
rack (1.5.2) lib/rack/runtime.rb:17:in call'
activesupport (4.1.8) lib/active_support/cache/strategy/local_cache_middleware.rb:26:incall'
rack (1.5.2) lib/rack/lock.rb:17:in call'
actionpack (4.1.8) lib/action_dispatch/middleware/static.rb:84:incall'
rack (1.5.2) lib/rack/sendfile.rb:112:in call'
railties (4.1.8) lib/rails/engine.rb:514:incall'
railties (4.1.8) lib/rails/application.rb:144:in call'
rack (1.5.2) lib/rack/lock.rb:17:incall'
rack (1.5.2) lib/rack/content_length.rb:14:in call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:inservice'
c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in service'
c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:inrun'
c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/routes/_route.html.erb (6.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.0ms)
Rendered c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (96.0ms)