small medium large xlarge

13 Aug 2013, 22:32
Stian Drøbak (6 posts)

Just before reaching Iteration K2, it says “Nothing looks any different when you are running as a single user”. Well, the production site look rather different. In the beginning, none of the assets was recognized, no javascript, no css, no images. After a rake assets:precompile and restart of rails the css and javascript was working. The images… still not working.

So is there a step or two I might have over looked? Except for the images it seem to work just fine.

Little piece of the log: “I, [2013-08-13T23:26:44.966769 #2730] INFO – : Completed 200 OK in 22ms (Views: 20.5ms | ActiveRecord: 0.0ms) I, [2013-08-13T23:26:45.152562 #2730] INFO – : Started GET “/logo.png” for ... at 2013-08-13 23:26:45 +0000 F, [2013-08-13T23:26:45.155056 #2730] FATAL – : ActionController::RoutingError (No route matches [GET] “/logo.png”):”

14 Aug 2013, 11:27
Sam Ruby (633 posts)

Did you uncomment load 'deploy/assets' in your Capfile?

14 Aug 2013, 16:25
Stian Drøbak (6 posts)

As I said, this was before just before K2, which means that I haven’t gotten to using Capistrano.

14 Aug 2013, 19:26
Stian Drøbak (6 posts)

I found the solution. I needed to use the asset_path method on the product.image_url.

You must be logged in to comment