How come GET doesn't retrieve Rails assets from "/" href path? -
when first load http://localhost:3000/, assets loaded correctly onto home page:
started "/" ::1 @ 2015-06-19 20:18:44 -0400 processing pagescontroller#home html rendered pages/home.html.erb within layouts/application (0.9ms) maker load (0.2ms) select "makers".* "makers" "makers"."id" = ? limit 1 [["id", 1]] completed 200 ok in 37ms (views: 36.0ms | activerecord: 0.2ms)
started "/assets/jquery.js?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/application.css?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/jquery_ujs.js?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/parallax.js?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/turbolinks.js?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/events.js?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/home.css?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/application.js?body=1" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/sky_6_hr.jpg" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/utah_venture_centered.jpg" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/looking.jpg" ::1 @ 2015-06-19 20:18:44 -0400
started "/assets/einstein-office.jpg" ::1 @ 2015-06-19 20:18:44 -0400
but when press home page navbar button href="/"
jpg assets not loaded , white wherever pictures supposed be:
started "/" ::1 @ 2015-06-19 20:33:59 -0400 processing pagescontroller#home html rendered pages/home.html.erb within layouts/application (0.4ms) maker load (0.1ms) select "makers".* "makers" "makers"."id" = ? limit 1 [["id", 1]] completed 200 ok in 9ms (views: 8.0ms | activerecord: 0.1ms)
the css , js seems loaded, doesn't show in terminal. also, if makes difference, maker load (0.1ms)
purple http://localhost:3000/ , blue , bold href="/"
.
in order correctly load home page, must refresh page or go http://localhost:3000/ myself.
shouldn't simple href="/"
same going http://localhost:3000/?
Comments
Post a Comment