Note that there are some explanatory texts on larger screens.

plurals
  1. PORails server not serving assets for some pages
    primarykey
    data
    text
    <p>I have a relatively simple Rails 4 application (running on nitrous.io) that is doing something peculiar. I have a form that is loaded via a GET request, and when the form page is loaded the rails server is rendering only the HTML, and none of the assets.</p> <pre><code>Started GET "/posts/new" for 198.84.233.70 at 2013-07-19 06:40:16 +0000 Processing by PostsController#new as HTML Rendered posts/_comments_form.html.erb (4.1ms) Rendered posts/new.html.erb within layouts/application (22.5ms) Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 0.0ms) </code></pre> <p>The result is that none of my jQuery bindings (actually, no JavaScript at all) get executed. Therefore the page does not work properly.</p> <p>If I reload the page (by clicking the Refresh button on the browser), then all the assets get served, all the JavaScript executes and everything works fine.</p> <pre><code>Completed 200 OK in 62ms (Views: 60.7ms | ActiveRecord: 0.0ms) Started GET "/posts/new" for 198.84.233.70 at 2013-07-19 06:40:27 +0000 Processing by PostsController#new as HTML Rendered posts/_comments_form.html.erb (2.5ms) Rendered posts/new.html.erb within layouts/application (49.5ms) Completed 200 OK in 62ms (Views: 60.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 Started GET "/assets/bootstrap_and_overrides.css?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 Started GET "/assets/wines.css?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 Started GET "/assets/jquery.js?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 Started GET "/assets/jquery_ujs.js?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 Started GET "/assets/twitter/bootstrap/bootstrap-transition.js?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 Started GET "/assets/posts.js?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 Started GET "/assets/application.js?body=1" for 198.84.233.70 at 2013-07-19 06:40:29 +0000 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload